Files
tailscale/ipn/ipnlocal
Brad Fitzpatrick ee7324a20e ipn/ipnlocal: deflake TestServeAppCapsConcurrentStreams on Windows
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]>
2026-11-21 10:34:47 -08:00
..
2026-07-10 17:39:16 -07:00