Re: handling large files w/readfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A "little" late but:

Robin Getz wrote:

If this runs for awhile things go very bad. This seems to be related to a specific download manager called NetAnts that seems to be popular in China.
http://www.netants.com/


Which attempts to open the same url for downloading 10-15 times at the same instant.


Download managers use Content-Range header [1] to request parts of the downloaded file in multiple instances. The client above is likely broken and does not recognize that your script does not support content-range requests, and keeps requesting and disconnecting instead of giving up.



Someone suggested apache_child_terminate - but this function doesn't seem to be available to me.

If the function is not available you can still use connection_aborted().


[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux