|
From: <php...@li...> - 2010-02-06 16:43:20
|
> Does the remote server respond with HTTP/1.1 by any chance? It does. > If so, the feof() test will not work, the last packet is zero, but the > connection isn't closed. It's failing before EOF. > So the 20KB you receive may be the remainder of the last connection. This might still be something to do with it, but on the last test with CURL and a 8k buffer: 175kb file downloaded okay 66MB file hung after 44kb downloaded It often works fine. So I'm considering using fsockopen and using 'set_time_limit' on each iteration and catching the exception when it hangs to retry the file a number of times. This will be a first for me. I appreciate your advice with this one. And the question I've been avoiding asking is now looming in my mind - any idea when 5.5.6 might be released? ;-) Thanks again, Mark... |