Integrated: 8296889: Race condition when cancelling a request
Daniel Fuchs
dfuchs at openjdk.org
Tue Nov 15 18:40:58 UTC 2022
On Fri, 11 Nov 2022 15:18:08 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> The CancelRequest test was observed failing again after [JDK-8294916](https://bugs.openjdk.org/browse/JDK-8294916) was integrated: there is a small race condition window in the code that unregisters the request BodySubscriber when a request is cancelled: if the request cancellation happens after the body subscriber is registered but before it is subscribed it may not be unregistered.
>
> The solution is to register it only after it has been successfully subscribed.
This pull request has now been integrated.
Changeset: 7357a1a3
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7357a1a379ed79c6754a8093eb108cd82062880a
Stats: 27 lines in 4 files changed: 21 ins; 2 del; 4 mod
8296889: Race condition when cancelling a request
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/11110
More information about the net-dev
mailing list