Skip to content

Worker threads WSGI Middleware Configurable #2052

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EyalMK
Copy link

@EyalMK EyalMK commented May 7, 2025

Fixes #1979.
"Make FlaskApp number of threads configurable"

Changes proposed in this pull request:

  • FlaskApp has an additional optional worker_threads constructor argument
  • worker_threads default to 10; identical to the default no. threads for WSGIMiddleware from a2wsgi

@EyalMK
Copy link
Author

EyalMK commented May 7, 2025

@RobbeSneyders Would much appreciate a review for this. Current state makes Connexion 3 and non-thread safe libraries totally incompatible...

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.

Make FlaskApp number of threads configurable
1 participant