mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-31 00:08:06 +00:00
The fix can make this test run unconditionally. This moves code from5c619882bcfor 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 commit6d2b8df06d)