Integrated: 8299018: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes

Daniel Fuchs dfuchs at openjdk.org
Tue Dec 20 11:09:56 UTC 2022


On Mon, 19 Dec 2022 10:24:39 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Please find here a trivial fix for a test issue in the HttpClient test's ProxyServer.
> 
> The ProxyServer has a bad printf that throws an IllegalFormatConversionException, which causes the proxy to close the connection after sending a 407 request. Depending on timing, the client might attempt to reuse the closed (or soon to be closed) connection for sending authentication, which then gets the next POST request to fail.
> 
> This failure is rare and intermittent (the client usually gets the close notification before it reuses the connection), but sometimes it doesn't.

This pull request has now been integrated.

Changeset: e5edb10d
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e5edb10dc56d9edac8e050e0f8e6c116743975d6
Stats:     38 lines in 1 file changed: 21 ins; 5 del; 12 mod

8299018: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes

Reviewed-by: djelinski, jpai

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

PR: https://git.openjdk.org/jdk/pull/11717


More information about the net-dev mailing list