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

java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5

XMLWordPrintable

    • b25
    • x86_64
    • linux

        ===== Testing with HTTP_1_1
        Server is: /127.0.0.1:33557
        Verifying communication with server
        <html><body><p>Hello World!</body></html>
        Communication with server OK
        Pretending the server is a proxy...
        Verifying communication with proxy
        <html><body><p>Hello World!</body></html>
        Communication with proxy OK

        Real test begins here.
        Setting up request with HttpClient for version: HTTP_1_1
        Sending request with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (2) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (3) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (4) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        PASSED: Proxy received only one connection from: [/127.0.0.1:45542]

        ===== Testing with HTTP_2
        Server is: /127.0.0.1:33557
        Verifying communication with server
        <html><body><p>Hello World!</body></html>
        Communication with server OK
        Pretending the server is a proxy...
        Verifying communication with proxy
        <html><body><p>Hello World!</body></html>
        Communication with proxy OK

        Real test begins here.
        Setting up request with HttpClient for version: HTTP_2
        Sending request with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (2) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (3) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Sending next request (4) with HttpClient: http://some.host.that.does.not.exist:4242/foo/x GET
        Got response
        Received: <html><body><p>Hello World!</body></html>
        Server stopped
        ----------System.err:(14/1081)----------
        Unexpected connection count: 5
        Connections: [/127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45562]
        java.lang.AssertionError: Expected 4: [/127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45562]
        at PlainProxyConnectionTest.test(PlainProxyConnectionTest.java:265)
        at PlainProxyConnectionTest.main(PlainProxyConnectionTest.java:102)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:573)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1576)

        JavaTest Message: Test threw exception: java.lang.AssertionError: Expected 4: [/127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45562]
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.AssertionError: Expected 4: [/127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45552, /127.0.0.1:45562]

              vyazici Volkan Yazici
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: