RFR: 8371471: HttpClient: Log HTTP/3 handshake failures if logging errors is enabled [v3]
Jaikiran Pai
jpai at openjdk.org
Fri Nov 7 16:48:01 UTC 2025
On Fri, 7 Nov 2025 15:30:20 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Surprisingly if the QUIC handshake fails exceptionally, and `-Djdk.httpclient.HttpClient.log=errors` is specified, the exception is not logged. This change fixes that.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>
> Review feedback
test/jdk/java/net/httpclient/http3/H3LogHandshakeErrors.java line 151:
> 149: System.out.println("Issuing request: " + req1);
> 150: final HttpResponse<Void> resp1 = client.send(req1, BodyHandlers.discarding());
> 151: Assert.assertEquals(resp1.statusCode(), 200, "unexpected response code for GET request");
Sorry I missed htis in the previous round of review. Shouldn't this line be a `fail("Request expected to fail but didn't")`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28196#discussion_r2504537116
More information about the net-dev
mailing list