Check connection and timeout

Bob Sneidar bobsneidar at iotecdigital.com
Fri Jul 14 11:47:10 EDT 2023


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 before I can proceed.

Bob S


On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:

Sorry,

It was mine...

function GetNetworkType
  local tLibUrlDriver
  try
     put the behavior of stack"revLibUrl" into tLibUrlDriver
  end try
  if tLibUrlDriver is empty then
     return "libURL"
  else
     return "tsNet"
  end if
end GetNetworkType

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net<mailto:rdimola at evergreeninfo.net>



More information about the use-livecode mailing list