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

[Gevent] socket: read error Connection reset by peer sock.c:635: Connection reset by peer #3284

Open
ErazerControl opened this issue Aug 23, 2024 · 0 comments

Comments

@ErazerControl
Copy link

ErazerControl commented Aug 23, 2024

Hi, team. I use gunicorn with gevent to launch django app gunicorn --workers 20 -k gevent myproject.wsgi.
But it always report socket: read error Connection reset by peer sock.c:635: Connection reset by peer when I usesiege -c 200 -r 1 http://127.0.0.1:8000/ioTask/ -v to test 200 concurrent requests for my app.

As shown in the test results(Only 65% request successfully) below, it means those requests fail. How do I fix it?

BTW, It still not work when I increase --backlog...

Env:

OS: MacOS 14
Chip: M3 pro
Python: 3.12.4
Gunicorn: 24.2.1
gevent: 24.2.1
image
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

No branches or pull requests

1 participant