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>
9 months ago
..
bootstrap_dns.go cmd/derper: count bootstrap dns unique lookups. 1 year ago
bootstrap_dns_test.go cmd/derper: count bootstrap dns unique lookups. 1 year ago
cert.go cmd/derper: disable http2 2 years ago
depaware.txt cmd/derper: add user timeout and reduce TCP keepalive 9 months ago
derper.go cmd/derper: add user timeout and reduce TCP keepalive 9 months ago
derper_test.go cmd/{derper,stund},net/stunserver: add standalone stun server 11 months ago
mesh.go derp/derphttp: fix race in mesh watcher 1 year ago
websocket.go net/wsconn: accept a remote addr string and plumb it through 1 year ago