summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorJames Tucker <james@tailscale.com>2026-04-02 17:02:03 -0700
committerJames Tucker <jftucker@gmail.com>2026-04-06 15:46:51 -0700
commit21695cdbf829c6435efc32109b7197c5ab05e50d (patch)
tree076bc7e49d3ee957d5ddbb15f790122abec069ea /control/controlhttp/controlhttpserver/controlhttpserver.go
parentd0cd0906d5d40567d10aebfab1b8ebe14ca48f64 (diff)
downloadtailscale-21695cdbf829c6435efc32109b7197c5ab05e50d.tar.xz
tailscale-21695cdbf829c6435efc32109b7197c5ab05e50d.zip
ipn/ipnlocal,net/netmon: make frequent darkwake more efficient
Investigating battery costs on a busy tailnet I noticed a large number of nodes regularly reconnecting to control and DERP. In one case I was able to analyze closely `pmset` reported the every-minute wake-ups being triggered by bluetooth. The node was by side effect reconnecting to control constantly, and this was at times visible to peers as well. Three changes here improve the situation: - Short time jumps (less than 10 minutes) no longer produce "major network change" events, and so do not trigger full rebind/reconnect. - Many "incidental" fields on interfaces are ignored, like MTU, flags and so on - if the route is still good, the rest should be manageable. - Additional log output will provide more detail about the cause of major network change events. Updates #3363 Signed-off-by: James Tucker <james@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions