After researching, it seems there is no way to set the connect timeout of a socket. Is this correct? If so, is there an alternative to Socket that I can use? I am sick of waiting so long to test connections!
Printable View
After researching, it seems there is no way to set the connect timeout of a socket. Is this correct? If so, is there an alternative to Socket that I can use? I am sick of waiting so long to test connections!
ReceiveTimeout doesn't do what you want?
If you are just looking for a connection timeout, how about calling the connect asynchronously. You could have a handful of different connections going at one, and wouldn't be bound up waiting for any one to connect. You could also abort the thread that was attempting the connection after a time interval that you wanted via a timer in your main thread.