JDK-2226909 : SSLSocket connect times out instead of throwing socket closed exception
  • Type: Backport
  • Backport of: JDK-7179879
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-07-16
  • Updated: 2013-06-11
  • Resolved: 2012-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40 b08Fixed 8Fixed
Comments
This is a backport for JDK-7179879,it have a changeset: http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/35fec642fd32 After checking the same file http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/0066fdf523d4/src/share/classes/sun/security/ssl/SSLSocketImpl.java in 7u repo, the code change haven't been pushed , Could you help to check it ? Thanks
11-06-2013

Marking this as verified after manually executing the sample program NewSSLSocketTest.java on solaris machine With "1.7.0_01", it took ~3min 13:53:55:952 Before Calling Socket Connect Call Socket Closed Statetrue socket closed successfully From Socket Close13:54:11:790 From Exception:13:57:12:874 java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) With (build 1.7.0_40-ea-b28) takes ~1s Before Calling Socket Connect Call Socket Closed Statetrue From Exception:14:03:18:157 socket closed successfully From Socket Close14:03:18:158
10-06-2013

Tim - you should reference the tip of jdk7u repo to obtain the latest code : http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/tip/src/share/classes/sun/security/ssl/SSLSocketImpl.java - I've confirmed that the fix is there.
09-06-2013

Can you please add more details to verify this bug. thx.
07-06-2013

EVALUATION see parent CR
29-08-2012