Skip to content

fix: reduce global lock contention when resizing#355

Merged
ethanpailes merged 1 commit intomasterfrom
fix-resize-lock-contention
Apr 27, 2026
Merged

fix: reduce global lock contention when resizing#355
ethanpailes merged 1 commit intomasterfrom
fix-resize-lock-contention

Conversation

@ethanpailes
Copy link
Copy Markdown
Contributor

This patch improves lock contention on the global sessions lock by releasing it when sending resize and detach messages to the shell->client thread. Previously, we could lock up the global table for up to SESSION_MSG_TIMEOUT, which is quite bad.

This patch improves lock contention on the global sessions
lock by releasing it when sending resize and detach messages
to the shell->client thread. Previously, we could lock up the
global table for up to SESSION_MSG_TIMEOUT, which is quite
bad.
@ethanpailes ethanpailes requested a review from maxhbooth April 27, 2026 18:02
@ethanpailes ethanpailes merged commit e2cc8cb into master Apr 27, 2026
7 checks passed
@ethanpailes ethanpailes deleted the fix-resize-lock-contention branch April 27, 2026 18:10
@release-plz-for-shpool release-plz-for-shpool Bot mentioned this pull request Apr 27, 2026
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.

2 participants