tailscale/derp
Josh Bleecher Snyder 3759fb8987 derp: deflake TestSendFreeze
On about 1 out of 500 runs, TestSendFreeze failed:

    derp_test.go:416: bob: unexpected message type derp.PeerGoneMessage

Closing alice before bob created a race.
If bob closed promptly, the test passed.
If bob closed slowly, and alice's disappearance caused
bob to receive a PeerGoneMessage before closing, the test failed.

Deflake the test by closing bob first.
With this fix, the test passed 12,000 times locally.

Fixes #2668

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-09-13 15:58:04 -07:00
..
derphttp cmd/derper: mesh over VPC network 2021-07-29 14:08:16 -07:00
testdata derp: add debug traffic handler 2021-06-18 15:47:55 -07:00
derp_client.go derp: add new health update and server restarting frame types 2021-08-31 13:31:51 -07:00
derp_server.go metrics: move currentFDs code to the metrics package 2021-09-02 11:14:14 -07:00
derp_test.go derp: deflake TestSendFreeze 2021-09-13 15:58:04 -07:00
derp.go derp: add new health update and server restarting frame types 2021-08-31 13:31:51 -07:00
dropreason_string.go derp: accept dup clients without closing prior's connection 2021-08-31 08:21:21 -07:00