The test expects that the first request will go to the HTTP/2 server and the 
next will go to HTTP/3. But since the default config is to use 
Http3DiscoveryMode.ANY it can manage to send the first request with HTTP/3 
instead.

Requests should be explicitly configured with Http3DiscoveryMode.ALT_SVC.

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

Commit messages:
 - 8369434: java/net/httpclient/AltServiceUsageTest.java fails intermittently

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

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

Reply via email to