Integrated: 8347995: Race condition in jdk/java/net/httpclient/offline/FixedResponseHttpClient.java

Daniel Fuchs dfuchs at openjdk.org
Tue Jan 21 16:06:39 UTC 2025


On Fri, 17 Jan 2025 15:38:16 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The jdk/java/net/httpclient/offline/FixedResponseHttpClient.java test class makes unreasonable assumptions on BodyPublisher implementation. There's no guarantee that all buffers will be available until the subscriber is completed. 
> The fix is to wait for completion before getting the consumed buffers.

This pull request has now been integrated.

Changeset: a62a8701
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a62a870150cf199f16277b478af2f5d937255b3c
Stats:     14 lines in 1 file changed: 10 ins; 0 del; 4 mod

8347995: Race condition in jdk/java/net/httpclient/offline/FixedResponseHttpClient.java

Reviewed-by: jpai

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

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


More information about the net-dev mailing list