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

java/net/httpclient/SplitResponseSSL.java fails intermitently

    Details

      Description

      There are failures observed with different exceptions. I will attach the whole logs.
      Reproduced with JDK 10 b36 on Windows 2012 R2.

      Following one observed more frequently (3 times) :
      INFO: TRACE: Attempting to return connection to the pool: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:55696 remote=/127.0.0.1:55683]
      DEBUG: [HttpClient-8-Worker-1] [75s 43ms] Http1Response SSLTube(SocketTube(63)): return to HTTP/1.1 pool
      Dec 20, 2017 9:15:00 PM jdk.incubator.http.PlainHttpConnection close
      INFO: TRACE: Closing: PlainHttpConnection: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:55696 remote=/127.0.0.1:55683]
      DEBUG: [HttpClient-8-Worker-1] [75s 45ms] HttpClientImpl(8) ClientImpl (async) elapsed 2575 millis for GET to https://127.0.0.1:55683/foo/
      DEBUG: [HttpClient-8-Worker-1] [75s 45ms] SSLTube(SocketTube(63)) Http1AsyncReceiver Delegate done: 0
      java.lang.RuntimeException: java.net.SocketException: Socket is closed
      at SplitResponse.lambda$sendSplitResponse$0(SplitResponse.java:222)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.net.SocketException: Socket is closed
      at java.base/sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1555)
      at java.base/sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1576)
      at java.base/sun.security.ssl.AppOutputStream.write(AppOutputStream.java:68)
      at java.base/java.io.OutputStream.write(OutputStream.java:77)
      at MockServer$Connection.send(MockServer.java:228)
      at SplitResponse.lambda$sendSplitResponse$0(SplitResponse.java:217)
      ... 1 more
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.net.SocketException: Socket is closed


      And this failure once:
      Dec 23, 2017 10:11:32 PM jdk.incubator.http.Http1Response onFinished
      INFO: TRACE: Attempting to return connection to the pool: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:60632 remote=/127.0.0.1:60618]
      DEBUG: [HttpClient-8-Worker-1] [74s 683ms] Http1Response SSLTube(SocketTube(63)): return to HTTP/1.1 pool
      Dec 23, 2017 10:11:32 PM jdk.incubator.http.PlainHttpConnection close
      INFO: TRACE: Closing: PlainHttpConnection: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:60632 remote=/127.0.0.1:60618]
      DEBUG: [HttpClient-8-Worker-1] [74s 684ms] HttpClientImpl(8) ClientImpl (async) elapsed 2364 millis for GET to https://127.0.0.1:60618/foo/
      DEBUG: [HttpClient-8-Worker-1] [74s 684ms] SSLTube(SocketTube(63)) Http1AsyncReceiver Delegate done: 0
      java.lang.RuntimeException: java.net.SocketException: Connection closed by remote host
      at SplitResponse.lambda$sendSplitResponse$0(SplitResponse.java:222)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.net.SocketException: Connection closed by remote host
      at java.base/sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1578)
      at java.base/sun.security.ssl.AppOutputStream.write(AppOutputStream.java:68)
      at java.base/java.io.OutputStream.write(OutputStream.java:77)
      at MockServer$Connection.send(MockServer.java:228)
      at SplitResponse.lambda$sendSplitResponse$0(SplitResponse.java:217)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                xiaofeya Xiaofeng Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: