quote:
Originally posted by alho
As I set
hwrRequest.Timeout = 5;
but for the unknown host it still takes about 50s to return false.
Why's that?
I dont know for sure, but I do know that if you do something like:
Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 10000);
Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 10000);
those timeout values apply only AFTER the connection has been established. AFAIK there is no way to adjust the timeout when trying to establish an initial connection attempt.