headscale/hscontrol/mapper
DM 3daf45e88a mapper: close stale map channels after send timeouts
When the batcher timed out sending to a node, it removed the channel from multiChannelNodeConn but left the old serveLongPoll goroutine running on that channel. That left a live stale session behind: it no longer received new updates, but it could still keep the stream open and block shutdown.

Close the pruned channel when stale-send cleanup removes it so the old map session exits after draining any buffered update.
2026-03-12 01:27:34 -07:00
..
batcher.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
batcher_lockfree.go mapper: close stale map channels after send timeouts 2026-03-12 01:27:34 -07:00
batcher_test.go mapper: handle RemoveNode after channel cleanup 2026-03-12 01:27:34 -07:00
builder.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
builder_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
mapper.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
mapper_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
tail_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00