tailscale/wgengine/magicsock
Brad Fitzpatrick deac82231c wgengine/magicsock: add start of alternate send path
During development of silent disco (#540), an alternate send policy
for magicsock that doesn't wake up the radio frequently with
heartbeats, we want the old & new policies to coexist, like we did
previously pre- and post-disco.

We started to do that earlier in 5c42990c2f but only set up the
env+control knob plumbing to set a bool about which path should be
used.

This starts to add a way for the silent disco code to update the send
path from a separate goroutine. (Part of the effort is going to
de-state-machinify the event based soup that is the current disco
code and make it more Go synchronous style.)

So far this does nothing. (It does add an atomic load on each send
but that should be noise in the grand scheme of things, and a even more
rare atomic store of nil on node config changes.)

Baby steps.

Updates #540

Co-authored-by: Jenny Zhang <jz@tailscale.com>
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-10-20 08:45:42 -07:00
..
debughttp.go wgengine/magicsock: fix panic in http debug server 2022-09-06 15:02:07 -07:00
debugknobs_stubs.go wgengine/magicsock: add client flag and envknob to disable heartbeat (#5638) 2022-09-16 23:48:46 -04:00
debugknobs.go wgengine/magicsock: add client flag and envknob to disable heartbeat (#5638) 2022-09-16 23:48:46 -04:00
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 2020-09-14 14:29:28 -07:00
magicsock_default.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock_linux.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock_test.go wgengine/magicsock: remove endpoint.wgEndpoint (#5911) 2022-10-17 10:36:08 -07:00
magicsock_unix_test.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock.go wgengine/magicsock: add start of alternate send path 2022-10-20 08:45:42 -07:00