Timeout limit on readurl function?

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
40k
Posts: 234
Joined: 09 Dec 2011 21:25

Timeout limit on readurl function?

Post 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.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

admin
Site Admin
Posts: 67316
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Timeout limit on readurl function?

Post by admin »

No timeout built in by me. Must be something else.

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Timeout limit on readurl function?

Post 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?
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

admin
Site Admin
Posts: 67316
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Timeout limit on readurl function?

Post by admin »

Anything that causes an imperfect transfer of bytes could be the reason.

Post Reply