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

sun/net/www/http/HttpClient/B6726695.java failed with SocketException: Connection reset

    Details

      Description

      This has been observed once during same binaries run with b23 which is the first build with consolidated repository.
       
      Please refer to the snippet of test output:
      ----------System.out:(1/19)----------
      server sleeping...
      ----------System.err:(28/2000)----------
      java.net.SocketException: Connection reset
      at java.base/java.net.SocketInputStream.read(SocketInputStream.java:210)
      at java.base/java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:746)
      at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1586)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:97)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1483)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1481)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:793)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1480)
      at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
      at B6726695.test(B6726695.java:129)
      at B6726695.main(B6726695.java:46)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: