Skip to content

ts_tunnel: make IdMap hand out handles for newly allocated sessions - #366

Open
danderson wants to merge 1 commit into
mainfrom
push-wlzwvzylnnzm
Open

ts_tunnel: make IdMap hand out handles for newly allocated sessions#366
danderson wants to merge 1 commit into
mainfrom
push-wlzwvzylnnzm

Conversation

@danderson

Copy link
Copy Markdown
Member

Every allocated session needs to be owned either by an in-flight handshake or an established session anyway, so making it RAII makes the cleanup of expired or abandoned sessions much more robust.

Updates #339

Change-Id: I3e03401ecc0d7882f5a794583b6b36d66a6a6964

Comment thread ts_tunnel/src/ids.rs Outdated
Comment thread ts_tunnel/src/session.rs
Every allocated session needs to be owned either by an in-flight handshake
or an established session anyway, so making it RAII makes the cleanup of
expired or abandoned sessions much more robust.

Updates #339

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: I3e03401ecc0d7882f5a794583b6b36d66a6a6964
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