mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-09 02:53:09 -05:00
Each send operation (sendPacket, sendPeerGone, sendPong, sendKeepAlive, etc) calls SetWriteDeadline on the underlying connection. This re-arms the netpoll timer on each packet frame write to the intermidiate lazy buffer for a socket write that happens later. Not the actual socket write done by runWriter. Move the SetWriteDeadline down to the buffer that is pulled by runWriter for each actual socket write. Updates tailscale/corp#50628 Signed-off-by: Mike O'Driscoll <mikeo@tailscale.com>