Skip to content

device: implement global staged queue packet container limit - #128

Merged
jwhited merged 1 commit into
tailscalefrom
jwhited/staged-accounting
Nov 10, 2026
Merged

jwhited merged 1 commit into
tailscalefrom
jwhited/staged-accounting

Conversation

@jwhited

@jwhited jwhited commented Nov 10, 2026

Copy link
Copy Markdown
Member

This limit enables control over memory consumption by long-lived packet containers across all peers. Exceeding the limit results in packets awaiting handshake being dropped from a peer's staged queue.

This commit also enables removal of device.WaitPool, which will be done in a subsequent commit.

Updates tailscale/tailscale#1971
Updates tailscale/tailscale#21773
Updates tailscale/corp#46396

@jwhited
jwhited requested review from a team, cmol, creachadair and illotum November 10, 2026 16:26

@sfllaw sfllaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This commit also enables removal of device.WaitPool, which will be done in a subsequent commit.

Exciting! Approved.

Comment thread device/device.go Resolved
This limit enables control over memory consumption by long-lived packet
containers across all peers. Exceeding the limit results in packets
awaiting handshake being dropped from a peer's staged queue.

This commit also enables removal of device.WaitPool, which will be done
in a subsequent commit.

Updates tailscale/tailscale#1971
Updates tailscale/tailscale#21773
Updates tailscale/corp#46396

Signed-off-by: Jordan Whited <[email protected]>
@jwhited
jwhited force-pushed the jwhited/staged-accounting branch from f7aab80 to de86922 Compare November 10, 2026 19:25
@jwhited
jwhited merged commit 9fbc7d0 into tailscale Nov 10, 2026
15 checks passed
@jwhited
jwhited deleted the jwhited/staged-accounting branch November 10, 2026 19:30
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.

3 participants