> Le 14 juil. 2023 à 17:14, Ralph DiMola via use-livecode
> a écrit :
>
> Ludovic,
>
> Make sure that tsNet is active:
>
Hello Ralph
Thanks. But yes tsnet was initialized.
I’ve measured the timeouts in miliseconds and it was always 30003 milliseconds.
But it’s only when there is a conne
Hi Ludovic.
I use a simple method of sockets to determine if I have a connection to a host.
I close the socket first:
closeSocket 127.0.0.1:3306
Then I open the socket:
Open socket to 127.0.0.1:3306
Put the result into tError
If terror begins with “ERROR: “ then
— your code here
End if
d EIStsNetGetTimeouts
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
>
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Bob Sneidar via use-livecode
> Sent: Friday, J
neidar via use-livecode
Sent: Friday, July 14, 2023 11:47 AM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Check connection and timeout
Thanks Ralph, very handy, but is there a way to get the timeout to see if
the command to set the timeout worked? I change networks frequently, and if
I d
Thanks Ralph, very handy, but is there a way to get the timeout to see if the
command to set the timeout worked? I change networks frequently, and if I do
not disconnect and reconnect to my SQL database, I run the risk of using a
stale connection, and then I face the dreaded 60 second stall befo
nal Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Ludovic THEBAULT via use-livecode
> Sent: Friday, July 14, 2023 3:51 AM
> To: How to use LiveCode
> Cc: Ludovic THEBAULT
> Subject: Re: Check connection and timeout
>
>
>
e-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Ludovic THEBAULT via use-livecode
> Sent: Friday, July 14, 2023 3:51 AM
> To: How to use LiveCode
> Cc: Ludovic THEBAULT
> Subject: Re: Check connection and timeout
>
>
>
>> Le 14 juil. 2023 à 08
I’m interested in this. But how do you GET the timeout?
Bob S
> On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode
> wrote:
>
> Hello,
>
> I use this code to check is there is an internet connection :
>
> tsNETSETTIMEOUTS 60,0,2000,6,5,1000
>
> put tsNetHeadSync("https://
nfo.net
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of
Ludovic THEBAULT via use-livecode
Sent: Friday, July 14, 2023 3:51 AM
To: How to use LiveCode
Cc: Ludovic THEBAULT
Subject: Re: Check connection and timeout
> Le 14 juil. 2023 à 0
> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode
> a écrit :
>
> Hello,
>
> I use this code to check is there is an internet connection :
>
> tsNETSETTIMEOUTS 60,0,2000,6,5,1000
>
> put tsNetHeadSync("https://google.com/";, tHeaders, tResult, tBytes) into
> tRecvHeaders
>
Hello,
I use this code to check is there is an internet connection :
tsNETSETTIMEOUTS 60,0,2000,6,5,1000
put tsNetHeadSync("https://google.com/";, tHeaders, tResult, tBytes) into
tRecvHeaders
if tResult begins with "tsneterr:" then
return false
else
return true
11 matches
Mail list logo