Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165478

java/net/httpclient/HeadersTest1.java failed with java.io.IOException: Connection reset by peer

    XMLWordPrintable

    Details

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michaelm Michael McMahon
              Reporter:
              xiaofeya Xiaofeng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: