You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/derper
James Tucker edbad6d274 cmd/derper: add user timeout and reduce TCP keepalive
The derper sends an in-protocol keepalive every 60-65s, so frequent TCP
keepalives are unnecessary. In this tuning TCP keepalives should never
occur for a DERP client connection, as they will send an L7 keepalive
often enough to always reset the TCP keepalive timer. If however a
connection does not receive an ACK promptly it will now be shutdown,
which happens sooner than it would with a normal TCP keepalive tuning.

This re-tuning reduces the frequency of network traffic from derp to
client, reducing battery cost.

Updates tailscale/corp#17587
Updates #3363

Signed-off-by: James Tucker <james@tailscale.com>
4 months ago
..
bootstrap_dns.go cmd/derper: count bootstrap dns unique lookups. 11 months ago
bootstrap_dns_test.go cmd/derper: count bootstrap dns unique lookups. 11 months ago
cert.go cmd/derper: disable http2 1 year ago
depaware.txt cmd/derper: add user timeout and reduce TCP keepalive 4 months ago
derper.go cmd/derper: add user timeout and reduce TCP keepalive 4 months ago
derper_test.go cmd/{derper,stund},net/stunserver: add standalone stun server 6 months ago
mesh.go derp/derphttp: fix race in mesh watcher 8 months ago
websocket.go net/wsconn: accept a remote addr string and plumb it through 10 months ago