tailscale/wgengine/magicsock
Brad Fitzpatrick d06ceffd02 wgengine/magicsock: add disabled failing (deadlocking) test for #1282
The fix can make this test run unconditionally.

This moves code from 5c619882bc for
testability but doesn't fix it yet. The #1282 problem remains (when I
wrote its wake-up mechanism, I forgot there were N DERP readers
funneling into 1 UDP reader, and the code just isn't correct at all
for that case).

Also factor out some test helper code from BenchmarkReceiveFrom.

The refactoring in magicsock.go for testability should have no
behavior change.

(cherry picked from commit 6d2b8df06d)
2021-02-08 14:38:37 -08:00
..
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 2020-09-14 14:29:28 -07:00
legacy.go wgengine/magicsock: make legacy DstToString match Addrs 2021-01-20 10:31:51 -08:00
magicsock_test.go wgengine/magicsock: add disabled failing (deadlocking) test for #1282 2021-02-08 14:38:37 -08:00
magicsock.go wgengine/magicsock: add disabled failing (deadlocking) test for #1282 2021-02-08 14:38:37 -08:00