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

sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java wedged in getInputStream

    XMLWordPrintable

Details

    • b14

    Backports

      Description

        The test was observed failing in timeout once. The thread dump reveals that there's no server thread (indicating that it has either never started, or already completed), but the client (MainThread) is still blocked in `getInputStream` waiting for the headers to arrive.

        "MainThread" #16 prio=5 os_prio=0 cpu=62.50ms elapsed=133.79s allocated=521K defined_classes=112 tid=0x000001cf072fc060 nid=0xbbf0 runnable [0x0000008cf34fe000]
           java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.SocketDispatcher.read0(java.base@17-ea/Native Method)
        at sun.nio.ch.SocketDispatcher.read(java.base@17-ea/SocketDispatcher.java:46)
        at sun.nio.ch.NioSocketImpl.tryRead(java.base@17-ea/NioSocketImpl.java:261)
        at sun.nio.ch.NioSocketImpl.implRead(java.base@17-ea/NioSocketImpl.java:312)
        at sun.nio.ch.NioSocketImpl.read(java.base@17-ea/NioSocketImpl.java:350)
        at sun.nio.ch.NioSocketImpl$1.read(java.base@17-ea/NioSocketImpl.java:803)
        at java.net.Socket$SocketInputStream.read(java.base@17-ea/Socket.java:962)
        at java.io.BufferedInputStream.fill(java.base@17-ea/BufferedInputStream.java:244)
        at java.io.BufferedInputStream.read1(java.base@17-ea/BufferedInputStream.java:284)
        at java.io.BufferedInputStream.read(java.base@17-ea/BufferedInputStream.java:343)
        - locked <0x00000000e2500028> (a java.io.BufferedInputStream)
        at sun.net.www.http.HttpClient.parseHTTPHeader(java.base@17-ea/HttpClient.java:788)
        at sun.net.www.http.HttpClient.parseHTTP(java.base@17-ea/HttpClient.java:723)
        at sun.net.www.http.HttpClient.parseHTTP(java.base@17-ea/HttpClient.java:747)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.base@17-ea/HttpURLConnection.java:1676)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.base@17-ea/HttpURLConnection.java:1577)
        at KeepAliveStreamCloseWithWrongContentLength.main(KeepAliveStreamCloseWithWrongContentLength.java:94)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@17-ea/Native Method)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@17-ea/NativeMethodAccessorImpl.java:78)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@17-ea/DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(java.base@17-ea/Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(java.base@17-ea/Thread.java:831)

        Attachments

          Issue Links

            Activity

              People

                isipka Ivan Sipka
                dfuchs Daniel Fuchs
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: