Files
tailscale/derp/derpserver
Mike O'Driscoll 4dfd5352b9 derp/derpserver: reduce setWriteDeadline calls (#22180)
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>
2026-11-05 10:45:38 -05:00
..