The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timeouts in TcpSocket.ClientConnect()
#1
Hi -

I know how to trap timeouts in TcpSocket.Send() using TcpSocket.Recieve() - but I'm also getting timeout errors on TcpSocket.ClientConnect().

The root cause of this is that the DNS at my institution is a mess. I have a fallback mechanism where the IP addresses are cached in a local database and if there is a timeout on ClientConnect() it will look up the IP address in the database. While this is a complete kludge - it works well except that it can take 10-15 seconds for the initial timeout. Is there a mechanism for setting the timeout of the initial connection lower?

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)