LibCurl and no Internet Connection
BlitzMax Forums/Brucey's Modules/LibCurl and no Internet Connection
| ||
Hi! I'm having a little problem here :( I have a code that downloads some files from my webserver. The problem is that, if the user happens to lack internet connection when trying to download the files, the program just hangs indefinately in the perform() function. Tried the ex_01.bmx example in "offline" mode and it happens the same. I know im missing something here.. perhaps a setOptString for that or something else? Thanks! |
| ||
Ah! Found it. Seems like CURLOPT_CONNECTTIMEOUT does the work. Funny thing is how much time is given as a default parameter if you dont set one yourself. Anyways, Sorry for the spam :) |