Skip to content

Support gevent >= 25.4.1 #3143

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
2 tasks done
jschoeller-atlassian opened this issue May 23, 2025 · 1 comment
Open
2 tasks done

Support gevent >= 25.4.1 #3143

jschoeller-atlassian opened this issue May 23, 2025 · 1 comment

Comments

@jschoeller-atlassian
Copy link

Prerequisites

Description

There is an HTTP request smuggling vulnerability in gevent [,25.4.1). See https://security.snyk.io/vuln/SNYK-PYTHON-GEVENT-9919772

The version of gevent required by locust is currently restricted to <25.0.0. See #3112

Request is to support the use of gevent >= 25.4.1.

@cyberw
Copy link
Collaborator

cyberw commented May 23, 2025

The reason we block gevent 25 is because it breaks compatibility with python-engineio (and thus python-socketio client). Once there's a solution for that, I'd be happy to upgrade!

miguelgrinberg/python-engineio#403

[2025-04-18 08:16:30,396] ERROR/cloud: 'gevent._gevent_cqueue.Queue' object has no attribute 'Empty'
Traceback (most recent call last):
  File "/home/runner/.local/share/uv/tools/locust-cloud/lib/python3.11/site-packages/locust_cloud/cloud.py", line 138, in main
    websocket.connect(
  File "/home/runner/.local/share/uv/tools/locust-cloud/lib/python3.11/site-packages/locust_cloud/websocket.py", line 81, in connect
    self.sio.connect(
  File "/home/runner/.local/share/uv/tools/locust-cloud/lib/python3.11/site-packages/socketio/client.py", line 147, in connect
    self.eio.connect(real_url, headers=real_headers,
  File "/home/runner/.local/share/uv/tools/locust-cloud/lib/python3.11/site-packages/engineio/client.py", line 94, in connect
    self.queue = self.create_queue()
                 ^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/locust-cloud/lib/python3.11/site-packages/engineio/client.py", line 166, in create_queue
    q.Empty = queue.Empty

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

No branches or pull requests

2 participants