RFR: 8359709: java.net.HttpURLConnection sends unexpected "Host" request header in some cases after JDK-8344190

Volkan Yazici vyazici at openjdk.org
Tue Jun 17 08:54:29 UTC 2025


On Tue, 17 Jun 2025 08:28:22 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> So any unexpected requests from other processes would still allow this test to be unaffected by those requests.

Yes, _this test_ will not be affected, but the other test _might_. Consider a test running in parallel, unexpectedly connecting to `HostHeaderTest`'s server, and it is

1. either not expecting a response at all
2. or not expecting the response returned from the `HostHeaderTest`'s handler

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25844#discussion_r2151706477


More information about the net-dev mailing list