headscale/hscontrol/mapper
Kristoffer Dalby b113655b71 all: implement PingRequest for node connectivity checking
Implement tailcfg.PingRequest support so the control server can verify
whether a connected node is still reachable. This is the foundation for
faster offline detection (currently ~16min due to Go HTTP/2 TCP retransmit
behavior) and future C2N communication.

The server sends a PingRequest via MapResponse with a unique callback
URL. The Tailscale client responds with a HEAD request to that URL,
proving connectivity. Round-trip latency is measured.

Wire PingRequest through the Change → Batcher → MapResponse pipeline,
add a ping tracker on State for correlating requests with responses,
add ResolveNode for looking up nodes by ID/IP/hostname, and expose a
/debug/ping page (elem-go form UI) and /machine/ping-response endpoint.

Updates #2902
Updates #2129
2026-04-15 10:53:35 +01:00
..
batcher.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
batcher_bench_test.go mapper/batcher: replace connected map with per-node disconnectedAt 2026-03-16 02:22:56 -07:00
batcher_concurrency_test.go all: apply formatter changes 2026-04-13 17:23:47 +01:00
batcher_scale_bench_test.go mapper/batcher: replace connected map with per-node disconnectedAt 2026-03-16 02:22:56 -07:00
batcher_test.go all: apply formatter changes 2026-04-13 17:23:47 +01:00
batcher_unit_test.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
builder.go all: implement PingRequest for node connectivity checking 2026-04-15 10:53:35 +01:00
builder_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
mapper.go all: implement PingRequest for node connectivity checking 2026-04-15 10:53:35 +01:00
mapper_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
node_conn.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
tail_test.go types,mapper,integration: enable Taildrive and add cap/drive grant lifecycle test 2026-04-01 14:10:42 +01:00