[8u] RFR: 8274595: DisableRMIOverHTTPTest failed: connection refused

Hohensee, Paul hohensee at amazon.com
Fri Oct 15 21:56:48 UTC 2021


Lgtm.

Thanks,
Paul

-----Original Message-----
From: jdk8u-dev <jdk8u-dev-retn at openjdk.java.net> on behalf of Alexey Bakhtin <alexey at azul.com>
Date: Thursday, September 30, 2021 at 7:17 AM
To: jdk8u-dev <jdk8u-dev at openjdk.java.net>
Subject: [8u] RFR: 8274595: DisableRMIOverHTTPTest failed: connection refused

Hi,

Please review the trivial change to sun/rmi/transport/tcp/DisableRMIOverHttp/DisableRMIOverHTTPTest.java:

Bug: https://bugs.openjdk.java.net/browse/JDK-8274595
Webrev: http://cr.openjdk.java.net/~abakhtin/8274595/webrev.v0/

The test fails because of URLConnection behaviour changes caused by JDK-8161016 [1]

Initially, the test was created on the base of BlockAcceptTest.java. Unlike BlockAcceptTest, DisableRMIOverHTTPTest does not use http proxy functionality but sets proxy via "http.proxyHost" system property.
HttpURLConnection in the JDK8u302 fallbacks to the direct connection in case of connection via proxy fails. As result, this test were passed using direct connection
JDK-8161016 changes the behavior of the HttpURLConnection: no fallback to the direct connection. As result, DisableRMIOverHTTPTest fails because of can no connection via dummy proxy.

Regards
Alexey

[1] - https://bugs.openjdk.java.net/browse/JDK-8161016



More information about the jdk8u-dev mailing list