Skip to content

Comments

wsgi WIP#6370

Draft
skiedude wants to merge 1 commit intoStackStorm:deprecate_eventletfrom
skiedude:eventlet_death
Draft

wsgi WIP#6370
skiedude wants to merge 1 commit intoStackStorm:deprecate_eventletfrom
skiedude:eventlet_death

Conversation

@skiedude
Copy link
Contributor

Create helper methods for:

  1. Greenpool size
  2. Creating an equivalent monkey_patch call for gevent
  3. a listen_server helper (this still needs more work as the instantiation has more steps with gevent)

@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Feb 24, 2026
return eventlet.wsgi.DEFAULT_MAX_SIMULTANEOUS_REQUESTS
elif CONCURRENCY_LIBRARY == "gevent":
# matches what DEFAULT_MAX_SIMULTANEOUS_REQUESTS is for eventlet
return 1024
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably avoid hard coded magic numbers and put this in a constants file. Perhaps https://github.com/StackStorm/st2/blob/master/st2common/st2common/constants/system.py or start a concurrency.py file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR that changes 30-99 lines. Good size to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants