mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 10:41:19 -08:00
The test started 400 requests at once, each proxied over a fresh
loopback connection to one httptest server. On Windows, the dials that
overflow the listen backlog are refused, the proxy returns an empty 502,
and the test reported that as "/ops: capabilities header missing". Cap
the requests in flight at 8 and report non-200 responses as such.
Reproduced on Linux in a network namespace with net.core.somaxconn=128
and tcp_abort_on_overflow=1 (12 of 200 runs failed). With the fix, 0 of
5000 failed there, and 0 of 2000 with somaxconn=8. With the original
bug fix from 566f89e0f reverted, the test still fails 50 of 50 runs.
Flakes analysis: http://flakes/analyze-test?name=tailscale.com%2Fipn%2Fipnlocal.TestServeAppCapsConcurrentStreams
Fixes tailscale/tailscale#22543
Change-Id: Ia3f74832d958744442b837d928a21aafa0445772
Signed-off-by: Brad Fitzpatrick <[email protected]>