JDK-8166530 : sun/net/www/protocol/https/HttpsClient/ProxyAuthTest.java fails intermittently
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-09-22
  • Updated: 2016-10-27
  • Resolved: 2016-10-20
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 9
9 b142Fixed
Related Reports
Relates :  
Relates :  
Description
sun/net/www/protocol/https/HttpsClient/ProxyAuthTest.java fails intermittently with SSLHandshakeException:

javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
	at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:1053)
	at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:968)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-internal/SSLSocketImpl.java:1395)
	at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/SSLSocketImpl.java:1422)
	at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/SSLSocketImpl.java:1406)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-internal/HttpsClient.java:558)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(java.base@9-internal/AbstractDelegateHttpsURLConnection.java:185)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@9-internal/HttpURLConnection.java:1502)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@9-internal/HttpURLConnection.java:1430)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(java.base@9-internal/HttpsURLConnectionImpl.java:235)
	at java.net.URL.openStream(java.base@9-internal/URL.java:1115)
	at ProxyAuthTest.doClientSide(ProxyAuthTest.java:165)
	at ProxyAuthTest.main(ProxyAuthTest.java:115)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
	at sun.security.ssl.SSLSocketInputRecord.decode(java.base@9-internal/SSLSocketInputRecord.java:156)
	at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:1026)
	... 18 more

Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a20f83221d20 User: lana Date: 2016-10-26 20:16:10 +0000
26-10-2016

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/a20f83221d20 User: asmotrak Date: 2016-10-20 18:23:11 +0000
20-10-2016

Code review: http://mail.openjdk.java.net/pipermail/security-dev/2016-October/014957.html
07-10-2016

This seems to be a test issue. It is not reproducible, and might be caused by other processes which might connect to SSL server. See for example http://mail.openjdk.java.net/pipermail/security-dev/2016-September/014856.html The approach which is implemented in SSLSocketSample.java can be applied to the test.
27-09-2016