Page 1 of 1

Timeout limit on readurl function?

Posted: 12 Apr 2013 13:11
by 40k
Anyone know if there is a timeout value in seconds for the readurl function? I'm getting seemingly random "download failed" errors in my scripts that use readurl(). Often when I try a second or third time the script works as intended. I'm on a dodgy ADSL connection in Southern Europe right now so I can't figure out if it's my code throwing a fit on just the internet here being crap.

Re: Timeout limit on readurl function?

Posted: 12 Apr 2013 13:35
by admin
No timeout built in by me. Must be something else.

Re: Timeout limit on readurl function?

Posted: 12 Apr 2013 23:42
by 40k
admin wrote:No timeout built in by me. Must be something else.
What could cause the readurl() function to throw "download failed" one time but it will work on the next attempt? No response from the server perhaps?

Re: Timeout limit on readurl function?

Posted: 13 Apr 2013 09:28
by admin
Anything that causes an imperfect transfer of bytes could be the reason.