Re: Check connection and timeout

2023-07-15 Thread Ludovic THEBAULT via use-livecode
> 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

Re: Check connection and timeout

2023-07-14 Thread Bob Sneidar via use-livecode
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

Re: Check connection and timeout

2023-07-14 Thread Bob Sneidar via use-livecode
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: F

RE: Check connection and timeout

2023-07-14 Thread Ralph DiMola via use-livecode
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

Re: Check connection and timeout

2023-07-14 Thread Bob Sneidar via use-livecode
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

RE: Check connection and timeout

2023-07-14 Thread Ralph DiMola via use-livecode
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 > > > >

Re: Check connection and timeout

2023-07-14 Thread Bob Sneidar via use-livecode
ailto: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:26,

Re: Check connection and timeout

2023-07-14 Thread Bob Sneidar via use-livecode
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

RE: Check connection and timeout

2023-07-14 Thread Ralph DiMola via use-livecode
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.

Re: Check connection and timeout

2023-07-14 Thread Ludovic THEBAULT via use-livecode
> 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 >