Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smp-server: limit concurrency in proxy command processing #1162

Merged
merged 8 commits into from
May 21, 2024

Conversation

dpwiz
Copy link
Contributor

@dpwiz dpwiz commented May 20, 2024

No description provided.

@dpwiz dpwiz marked this pull request as ready for review May 20, 2024 17:18
@dpwiz dpwiz requested a review from spaced4ndy as a code owner May 20, 2024 17:18
@dpwiz dpwiz changed the title smp: put client proxy command processing threads under a shared semap… smp-server: limit concurrency in proxy command processing May 20, 2024
ServerConfig {proxyClientConcurrency} <- asks config
let enter = atomically $ do
used <- readTVar procThreads
when (used > proxyClientConcurrency) retry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this effectively allows 1 more thread than defined concurrency limit

@epoberezkin epoberezkin merged commit f50fa5c into master May 21, 2024
2 of 3 checks passed
@epoberezkin epoberezkin deleted the ab/proxy-limits branch May 21, 2024 11:53
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