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

java/net/httpclient/ManyRequestsLegacy.java failed with connection timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b27
    • Verification:
      Verified

      Backports

        Description

        java/net/httpclient/ManyRequestsLegacy.java failed with unexpected Exception


        ----------System.err:(59/4768)----------
        Jun 15, 2021 7:40:53 PM ManyRequestsLegacy main
        INFO: TEST
        ClientImpl (async) elapsed 847 millis for POST to https://localhost:61682/foo/x7
        ClientImpl (async) elapsed 946 millis for POST to https://localhost:61682/foo/x2
        ClientImpl (async) elapsed 1029 millis for POST to https://localhost:61682/foo/x6
        ClientImpl (async) elapsed 1121 millis for POST to https://localhost:61682/foo/x5
        ClientImpl (async) elapsed 1118 millis for POST to https://localhost:61682/foo/x20
        ClientImpl (async) elapsed 1154 millis for POST to https://localhost:61682/foo/x13
        ClientImpl (async) elapsed 1202 millis for POST to https://localhost:61682/foo/x11
        ClientImpl (async) elapsed 1217 millis for POST to https://localhost:61682/foo/x12
        ClientImpl (async) elapsed 1237 millis for POST to https://localhost:61682/foo/x19
        ClientImpl (async) elapsed 1263 millis for POST to https://localhost:61682/foo/x18
        ClientImpl (async) elapsed 1318 millis for POST to https://localhost:61682/foo/x16
        ClientImpl (async) elapsed 1387 millis for POST to https://localhost:61682/foo/x14
        ClientImpl (async) elapsed 1492 millis for POST to https://localhost:61682/foo/x8
        ClientImpl (async) elapsed 1553 millis for POST to https://localhost:61682/foo/x9
        ClientImpl (async) elapsed 1575 millis for POST to https://localhost:61682/foo/x3
        ClientImpl (async) elapsed 1630 millis for POST to https://localhost:61682/foo/x4
        ClientImpl (async) elapsed 1681 millis for POST to https://localhost:61682/foo/x10
        ClientImpl (async) elapsed 1680 millis for POST to https://localhost:61682/foo/x17
        ClientImpl (async) elapsed 1814 millis for POST to https://localhost:61682/foo/x1
        ClientImpl (async) elapsed 1788 millis for POST to https://localhost:61682/foo/x15
        java.util.concurrent.CompletionException: java.net.ConnectException: Connection timed out: connect
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
        at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:874)
        at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
        at ManyRequestsLegacy$LegacyHttpClient.lambda$sendAsync$0(ManyRequestsLegacy.java:184)
        at java.base/java.lang.Thread.run(Thread.java:833)
        Caused by: java.net.ConnectException: Connection timed out: connect
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:579)
        at java.base/sun.nio.ch.Net.connect(Net.java:568)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
        at java.base/java.net.Socket.connect(Socket.java:633)
        at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:299)
        at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603)
        at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
        at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:189)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1430)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1401)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:220)
        at ManyRequestsLegacy$LegacyHttpClient.lambda$sendAsync$0(ManyRequestsLegacy.java:175)
        ... 1 more

        JavaTest Message: Test threw exception: java.util.concurrent.CompletionException: java.net.ConnectException: Connection timed out: connect
        JavaTest Message: shutting down test

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                msheppar Mark Sheppard
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: