RFR: 8373409: java/net/httpclient/http3/H3ErrorHandlingTest.java failed due to deadlock
Daniel Jeliński
djelinski at openjdk.org
Fri Dec 12 12:42:01 UTC 2025
On Fri, 12 Dec 2025 12:31:07 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> This PR fixes a deadlock between the `localConnectionIdManager` and the `connections` map by closing the manager before calling `connections.compute`.
>
> No new tests; the issue requires a complex setup to reproduce, and the new code is easy enough to reason about. Existing tests continue to pass.
I checked all other uses of `CHM.compute` in the `java.net.http` module; most of them are trivially correct. The ones in `AltServiceRegistry` are not trivial, and might need to be replaced with something easier to reason about. I'll look into that.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28788#issuecomment-3646319986
More information about the net-dev
mailing list