On Mon, 6 Oct 2025 18:37:14 GMT, Volkan Yazici <[email protected]> wrote:

>> src/java.net.http/share/classes/jdk/internal/net/http/Http3ExchangeImpl.java 
>> line 1341:
>> 
>>> 1339:             if (!responseReceived && resetError == 
>>> Http3Error.H3_REQUEST_REJECTED) {
>>> 1340:                 exchange.markUnprocessedByPeer();
>>> 1341:             }
>> 
>> Without this, server handler's 
>> `exchange.resetStream(Http3Error.H3_REQUEST_REJECTED.code())` results in 
>> client to fail the request, instead of retrying it. I am not sure if 
>> `H3_REQUEST_REJECTED` is the only error code we should guard against.
>
> Figured the problem is more convoluted than it appears. @jaikiran will soon 
> land a PR adressing this issue. I will hold this PR until then.

[JDK-8369812] (_"HttpClient doesn't handle H3_REQUEST_REJECTED correctly"_) is 
created (along with #27793) to address this.

[JDK-8369812]: https://bugs.openjdk.org/browse/JDK-8369812

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27469#discussion_r2428671551

Reply via email to