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 way for completion before getting the consumed buffers.

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

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

Changes: https://git.openjdk.org/jdk/pull/23176/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23176&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8347995
  Stats: 14 lines in 1 file changed: 10 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/23176.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23176/head:pull/23176

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

Reply via email to