tailscale/wgengine/netstack
James Tucker 1aa75b1c9e wgengine/netstack: always set TCP keepalive
Setting keepalive ensures that idle connections will eventually be
closed. In userspace mode, any application configured TCP keepalive is
effectively swallowed by the host kernel, and is not easy to detect.
Failure to close connections when a peer tailscaled goes offline or
restarts may result in an otherwise indefinite connection for any
protocol endpoint that does not initiate new traffic.

This patch does not take any new opinion on a sensible default for the
keepalive timers, though as noted in the TODO, doing so likely deserves
further consideration.

Update #4522

Signed-off-by: James Tucker <james@tailscale.com>
2022-04-26 19:29:08 -07:00
..
netstack_linux.go wgengine/netstack: make userspace ping work when tailscaled has CAP_NET_RAW 2022-01-12 14:23:39 -08:00
netstack_test.go wgengine/netstack: disable refsvfs2 leak tracking (#4378) 2022-04-07 17:21:45 -07:00
netstack.go wgengine/netstack: always set TCP keepalive 2022-04-26 19:29:08 -07:00
subnet_router_wrapper.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 2021-04-06 21:37:28 -07:00