On Mon, 26 Jan 2026 13:09:16 GMT, Daniel Fuchs <[email protected]> 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.

This pull request has now been integrated.

Changeset: 96180b9c
Author:    Daniel Fuchs <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/96180b9c56a03f6d7cb22c0618ed7d946beae6bf
Stats:     92 lines in 1 file changed: 52 ins; 1 del; 39 mod

8376308: java/net/httpclient/CancelRequestTest.java fails intermittently with 
"Expected CancellationException not received"

Reviewed-by: djelinski, vyazici

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

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

Reply via email to