RFR: 8376308: java/net/httpclient/CancelRequestTest.java fails intermittently with "Expected CancellationException not received" [v2]
Volkan Yazici
vyazici at openjdk.org
Thu Jan 29 11:56:43 UTC 2026
On Thu, 29 Jan 2026 11:25:02 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> When using async mode, and if the "wrong" test/client thread gets suspended at the wrong time there's a small time window in which the server might be able to send its reply before the request is cancelled.
>> This can be avoided by having the server handler wait on a semaphore until the cancellation exception has been propagated to the caller on the client side.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>
> Review feedback
Marked as reviewed by vyazici (Committer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/29415#pullrequestreview-3722242743
More information about the net-dev
mailing list