Needs work
Project:
Bitcache
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2010 at 18:20 UTC
Updated:
14 Jan 2010 at 19:28 UTC
The default passthru() method of bitcache causes problems with large files. I have tried 700MB file and it reports a problem:
[Thu Jan 14 19:18:33 2010] [error] [client ...] PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 192153601 bytes) in /home/www/.../www/sites/all/modules/contrib/bitcache/bitcache.inc on line 556
I have found out that ob_end_flush() directly before fpassthru() fixes the problem partially. It again reports memory limit problem but the download of the file continues...
Comments
Comment #1
meba commentedObviously, it's not enough...
It fails after 192M
Comment #2
meba commentedI had to change this to X-Sendfile in passthru() method