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

meba’s picture

Obviously, it's not enough...

Length: 733,532,160 (700M) [application/x-tar]

 0% [                                                                                                                                                                                                 ] 2,195,456      3.44M/s             
26% [=================================================>                                                                                                                                               ] 192,143,360    3.19M/s    ETA 02:33

20:04:22 (3.38 MB/s) - Connection closed at byte 192143360. Retrying.

It fails after 192M

meba’s picture

I had to change this to X-Sendfile in passthru() method