JDK-8165478 : java/net/httpclient/HeadersTest1.java failed with java.io.IOException: Connection reset by peer
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-09-06
  • Updated: 2016-12-12
  • Resolved: 2016-12-12
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.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Description
This is intermittent. It has been observed once in 9 b133 same binaries run on Solaris X64.

Test output:
----------System.out:(1/20)----------
Server port = 58559
----------System.err:(30/2212)----------
java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcherImpl.read0(java.base@9-ea/Native Method)
	at sun.nio.ch.SocketDispatcher.read(java.base@9-ea/SocketDispatcher.java:39)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(java.base@9-ea/IOUtil.java:223)
	at sun.nio.ch.IOUtil.read(java.base@9-ea/IOUtil.java:197)
	at sun.nio.ch.SocketChannelImpl.read(java.base@9-ea/SocketChannelImpl.java:382)
	at java.net.http.PlainHttpConnection.readImpl(java.httpclient@9-ea/PlainHttpConnection.java:222)
	at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:310)
	at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:286)
	at java.net.http.Http1Response.getBuffer(java.httpclient@9-ea/Http1Response.java:251)
	at java.net.http.Http1Response.readStatusLine(java.httpclient@9-ea/Http1Response.java:264)
	at java.net.http.Http1Response.readHeaders(java.httpclient@9-ea/Http1Response.java:69)
	at java.net.http.Http1Exchange.getResponse(java.httpclient@9-ea/Http1Exchange.java:144)
	at java.net.http.Exchange.responseImpl0(java.httpclient@9-ea/Exchange.java:149)
	at java.net.http.Exchange.responseImpl(java.httpclient@9-ea/Exchange.java:129)
	at java.net.http.Exchange.response(java.httpclient@9-ea/Exchange.java:86)
	at java.net.http.MultiExchange.response(java.httpclient@9-ea/MultiExchange.java:99)
	at java.net.http.HttpRequestImpl.response(java.httpclient@9-ea/HttpRequestImpl.java:214)
	at HeadersTest1.main(HeadersTest1.java:73)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:843)