mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-25 11:11:18 -08:00
Wait for the inject func to be done when closing the netstack.Impl.
This sleep made it more flaky (racy) under flakestress for testing before & after:
ns.packetsInFlight[tei] = struct{}{}
ns.mu.Unlock()
time.Sleep(10 * time.Millisecond)
if debugNetstack() {
ns.logf("[v2] netstack: in-flight connections for client %v: %d", remoteIP, inFlight)
}
TestTCPForwardLimits_PerClient is no longer flaky.
Fixes #19720
Change-Id: Ib96618de4867aeadb57f2c4168676a3e966a38c1
Signed-off-by: Brad Fitzpatrick <[email protected]>