Check connection and timeout
bobsneidar at iotecdigital.com
Fri Jul 14 11:17:27 EDT 2023
I’m interested in this. But how do you GET the timeout?
> On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode <use-livecode at lists.runrev.com> wrote:
> I use this code to check is there is an internet connection :
> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000
> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders
> if tResult begins with "tsneterr:" then
> return false
> return true
> end if
> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout.
> Is there an other settings ?
More information about the use-livecode