How to config socket connect timeout in C#
- by ninikin
(C# )When the Client tries to connect to a disconnected IP address, there is a long timeout over 15 seconds... How can we reduce this timeout? What is the method to config it?
The code I'm using to set up a socket connection is as following:
try
{
m_clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,…