Skip to content

[v13] Prevent deadlock on moderated sessions when mod connection drops#36918

Merged
tigrato merged 1 commit intobranch/v13from
bot/backport-36882-branch/v13
Jan 19, 2024
Merged

[v13] Prevent deadlock on moderated sessions when mod connection drops#36918
tigrato merged 1 commit intobranch/v13from
bot/backport-36882-branch/v13

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Jan 19, 2024

Backport #36882 to branch/v13

changelog: Ensure that moderated sessions do not get stuck in the event of an unexpected drop in the moderator's connection.

This PR removes a deadlock caused by the moderator leaving the session
because his connection drops.

`OnWriteError` was called under lock which creates an issue if the
function calls `Termnager.DeleteWriter` to exclude the writter from the
term manager.

This PR also correctly forwards errors to the clients when they occur.

Changelog: Ensure that moderated sessions do not get stuck in the event of an unexpected drop in the moderator's connection.

Fixes #36881

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato added this pull request to the merge queue Jan 19, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 19, 2024
@tigrato tigrato added this pull request to the merge queue Jan 19, 2024
Merged via the queue into branch/v13 with commit 4131f7f Jan 19, 2024
@tigrato tigrato deleted the bot/backport-36882-branch/v13 branch January 19, 2024 16:01
@camscale camscale mentioned this pull request Feb 6, 2024
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