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

Sync threaded worker not closing connection properly on max_request limit #926

Closed
diwu1989 opened this issue Oct 31, 2014 · 2 comments
Closed

Comments

@diwu1989
Copy link

I am running gunicorn 19.1.1 with multiple sync worker threads. When the request hits the max_request limit and the worker is restarted, the ongoing response isn't closed off properly.

This problem is fixed when I reduce the worker thread count to 1, but whenever there are more than 1 thread, when the worker is restarted, I see errors like these in the log

2014/10/31 05:53:45 [error] 73#0: *56 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.185.0.100, server: _, request: "GET /api/widgets/goalstats/2 HTTP/1.1", upstream: "http://unix:/tmp/nginx.socket:/api/widgets/goalstats/2", host: "dw.betterworks.com", referrer: "https://dw.betterworks.com/app/"
@diwu1989
Copy link
Author

diwu1989 commented Nov 1, 2014

I think this is also related to #908

@benoitc
Copy link
Owner

benoitc commented Nov 23, 2014

duplicate to #908. Will be solved in next release.

@benoitc benoitc closed this as completed Nov 23, 2014
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

2 participants