Created
September 30, 2014 08:20
-
-
Save w0rse/b45cacf53a9aad71f985 to your computer and use it in GitHub Desktop.
Patch to fix worker timouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py | |
index 4cfa7a8..00bedc7 100644 | |
--- a/gunicorn/workers/async.py | |
+++ b/gunicorn/workers/async.py | |
@@ -30,6 +30,7 @@ class AsyncWorker(base.Worker): | |
def handle(self, listener, client, addr): | |
req = None | |
try: | |
+ client.settimeout(self.cfg.timeout) | |
parser = http.RequestParser(self.cfg, client) | |
try: | |
listener_name = listener.getsockname() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment