United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6457066 SocketTimeoutException : Timing out early
6457066 : SocketTimeoutException : Timing out early

Details
Type:
Bug
Submit Date:
2006-08-04
Status:
Closed
Updated Date:
2011-05-19
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
core-libs
OS:
solaris_1
Sub-Component:
java.net
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u7
Fixed Versions:
7

Related Reports
Backport:
Backport:

Sub Tasks

Description
Hits java.net.SocketTimeoutExceptions upon trying to make a connection.
Timeout of 5000 ms is set, but the connection attempt fails in much less time than this. 

This happens on a socket taking a long time to connect and the thread getting interrupted. 
This behavior is seen in production, where the socket was
timing out much earlier than expected.

                                    

Comments
EVALUATION

Update native code to work out the time spent in the "retry connect" loop correctly.
                                     
2006-08-23
EVALUATION

This problem is unlikely to occur that often in the field but is indeed an issue. The suggested fix in the comments section seems reasonable.
                                     
2006-08-04



Hardware and Software, Engineered to Work Together