Skip to content

[v14] Prevent deadlock on moderated sessions when mod connection drops#36917

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

[v14] Prevent deadlock on moderated sessions when mod connection drops#36917
tigrato merged 1 commit intobranch/v14from
bot/backport-36882-branch/v14

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Jan 19, 2024

Backport #36882 to branch/v14

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
Merged via the queue into branch/v14 with commit 6b75acc Jan 19, 2024
@tigrato tigrato deleted the bot/backport-36882-branch/v14 branch January 19, 2024 15:33
This was referenced Aug 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