Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Socket.connect timeout expires before the the timeout set by user (windows)

843790Jan 5 2009 — edited Jan 8 2009
Hi ,

// 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2009
Added on Jan 5 2009
5 comments
624 views