Skip to content

Conversation

@kradalby
Copy link
Collaborator

types: add option to disable taildrop

Update TestTaildrop to validate that #2462 is fixed
through #2885 and #2931.

Fixes #2462

@kradalby kradalby requested a review from juanfont as a code owner December 11, 2025 17:04
@kradalby kradalby force-pushed the kradalby/taildrop-tagged branch from 1c1b94d to c6ec3d1 Compare December 11, 2025 17:13
Copy link
Collaborator

@nblock nblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a section to the bottom of the configuration file to document that taildrop can now be enabled/disabled as desired? This would fix #2463.

It'd be great if you could add a changelog entry.

@nblock
Copy link
Collaborator

nblock commented Dec 11, 2025

There's some panic in the tests

{"level":"debug","caller":"/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:573","node.id":6,"chan":"0xc0003268c0","conn.id":"3302d23c766dbd14","connection_index":0,"time":"2025-12-11T17:25:50Z","message":"send: attempting to send to connection"}
panic: send on closed channel

goroutine 2830 [running]:
github.com/juanfont/headscale/hscontrol/mapper.(*connectionEntry).send(0xc0003d0000, 0x1430a82?)
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:626 +0x85
github.com/juanfont/headscale/hscontrol/mapper.(*multiChannelNodeConn).send(0xc0002b03c0, 0xc0004331e0)
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:577 +0x37b
github.com/juanfont/headscale/hscontrol/mapper.handleNodeChange({0x15ee920, 0xc0002b03c0}, 0xc000485a80, {0x16, 0x0, 0x5, 0x0, 0x0, 0x0})
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher.go:228 +0x193
github.com/juanfont/headscale/hscontrol/mapper.(*multiChannelNodeConn).change(...)
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:658
github.com/juanfont/headscale/hscontrol/mapper.(*LockFreeBatcher).worker(0xc0002b4fc0, 0x1)
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:251 +0x4e5
created by github.com/juanfont/headscale/hscontrol/mapper.(*LockFreeBatcher).doWork in goroutine 2990
	/home/runner/work/headscale/headscale/hscontrol/mapper/batcher_lockfree.go:174 +0x58

Fixes juanfont#2463

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Update TestTaildrop to validate that juanfont#2462 is fixed
through juanfont#2885 and juanfont#2931.

Fixes juanfont#2462

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby kradalby force-pushed the kradalby/taildrop-tagged branch from c6ec3d1 to 8b93e86 Compare December 11, 2025 22:26
@kradalby
Copy link
Collaborator Author

There's some panic in the tests

I'll aim to fix that in a followup.

@kradalby kradalby merged commit 642073f into juanfont:main Dec 12, 2025
123 of 127 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Taildrop between un-tagged and tagged nodes works

2 participants