SIGN IN SIGN UP

gh-70765: fix an HTTP/0.9 flaky test post GH-139514 (#139610)

Fix a flaky test introduced in 13dc2fde8cec1e8aad04c7635b3da4ff3e3dcb00.

After a single HTTP/0.9 request, both client and server are expected to
close the connection on their side. In particular, if a client sends two
requests with the same connection, only the first one should be handled.

In the tests, it might happen that checking for the second request to be
ignored did not take into account that the server may have already closed
the connection. This flaky behavior was first observed on macOS CI workers
but could not be reproduced locally on a Linux machine.
B
Bénédikt Tran committed
1fe89d324e6b96dc44a7bd593c428a90d1f39d55
Parent: 6edb2dd
Committed by GitHub <noreply@github.com> on 10/5/2025, 4:51:16 PM