Socket.connect timeout expires before the the timeout set by user (windows)
843790Jan 5 2009 — edited Jan 8 2009Hi ,
// assume some address InetSocketAddress addr ;
int timeout=120;
when i use socket.connect(addr,(timeout*1000));
The above api call will timeout after approx 20 seconds on windows platform.
Is there a way in which we could control this behavior in windows.