Integrated: 8297149: REDO JDK-8296889: Race condition when cancelling a request

Daniel Fuchs dfuchs at openjdk.org
Thu Nov 17 15:12:32 UTC 2022


On Wed, 16 Nov 2022 18:52:42 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Please find here a re-do fix for the race condition while cancelling request.
> The previous fix failed because it registered the subscriber too late (after having called userSubsciber.onSubscribe()), which opened a window for the call to unregister to occur before the call to register.
> This is fixed in this new iteration.

This pull request has now been integrated.

Changeset: 134acab5
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/134acab5a40b3f927ff6343aa49477a490e410b5
Stats:     44 lines in 5 files changed: 31 ins; 6 del; 7 mod

8297149: REDO JDK-8296889: Race condition when cancelling a request
8297075: java/net/httpclient/CancelStreamedBodyTest.java fails with "java.lang.AssertionError: WARNING: tracker for HttpClientImpl(1) has outstanding operations"

Reviewed-by: jpai

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

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


More information about the net-dev mailing list