Re: handling large files w/readfile
| From: | Marek Kilimajer | Date: | Wed, 23 Feb 2005 14:45:35 +0000 |
| Subject: | Re: handling large files w/readfile | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209238@lists.php.net to get a copy of this message | ||
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