Skip to content

Prevent ConnectionMonitor leaks#36621

Merged
rosstimothy merged 1 commit intomasterfrom
tross/prevent_conn_monitor_leaks
Jan 13, 2024
Merged

Prevent ConnectionMonitor leaks#36621
rosstimothy merged 1 commit intomasterfrom
tross/prevent_conn_monitor_leaks

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Jan 12, 2024

The context used to create the connection monitor for app sessions was never canceled which left the connection monitor running until the certificate expired, the user was locked, or the idle timeout was enforced. By using the correct context and canceling appropriately the monitor is terminated as soon as the app session has concluded.

Partially addresses #36541.

changelog: Prevent a goroutine leak caused by app sessions not cleaning up resources properly

The context used to create the connection monitor for app sessions
was never canceled which left the connection monitor running until
the certificate expired, the user was locked, or the idle timeout
was enforced. By using the correct context and canceling appropriately
the monitor is terminated as soon as the app session has concluded.
@rosstimothy rosstimothy marked this pull request as ready for review January 12, 2024 16:30
@github-actions github-actions Bot requested review from kimlisa and lxea January 12, 2024 16:31
@gravitational gravitational deleted a comment from github-actions Bot Jan 12, 2024
@gravitational gravitational deleted a comment from github-actions Bot Jan 12, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Jan 13, 2024
Merged via the queue into master with commit 1a840ad Jan 13, 2024
@rosstimothy rosstimothy deleted the tross/prevent_conn_monitor_leaks branch January 13, 2024 02:35
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR
branch/v14 Create PR

rosstimothy added a commit that referenced this pull request Jan 13, 2024
The context used to create the connection monitor for app sessions
was never canceled which left the connection monitor running until
the certificate expired, the user was locked, or the idle timeout
was enforced. By using the correct context and canceling appropriately
the monitor is terminated as soon as the app session has concluded.
github-merge-queue Bot pushed a commit that referenced this pull request Jan 16, 2024
The context used to create the connection monitor for app sessions
was never canceled which left the connection monitor running until
the certificate expired, the user was locked, or the idle timeout
was enforced. By using the correct context and canceling appropriately
the monitor is terminated as soon as the app session has concluded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants