RFR: 8369812: HttpClient doesn't handle H3_REQUEST_REJECTED correctly [v3]

Jaikiran Pai jpai at openjdk.org
Tue Oct 14 12:59:16 UTC 2025


> Can I please get a review of this change which proposes to fix the implementation in HttpClient to correctly handle the H3_REQUEST_REJECTED error code?
> 
> As noted in https://bugs.openjdk.org/browse/JDK-8369812, the current implementation in the HttpClient treats this like an error and causes the HTTP request to fail. The proposed change in this PR addresses this by marking a request which was reset due to H3_REQUEST_REJECTED as unprocessed. This then allows the `MultiExchange` to reissue the request afresh. This new behaviour matches the expectation specified for this error code in the HTTP/3 RFC.
> 
> A new jtreg test has been introduced to reproduce the issue and verify the fix.

Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:

  forgot to include @bug id in the test definition

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27793/files
  - new: https://git.openjdk.org/jdk/pull/27793/files/edf3ea42..80da00de

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27793&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27793&range=01-02

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27793.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27793/head:pull/27793

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


More information about the net-dev mailing list