From 9c8695b04f38398ae5ebf0aad37b69475d378fb4 Mon Sep 17 00:00:00 2001 From: ddzialak Date: Thu, 1 Mar 2018 13:55:48 +0100 Subject: [PATCH] Avoid 'Connection refused' when using multithreaded gthread worker with keep-alive (#1699) Fixes #1698 --- gunicorn/workers/gthread.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py index 5f918e2e..862f873d 100644 --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -74,11 +74,6 @@ class TConn(object): def close(self): util.close(self.sock) - def __lt__(self, other): - return self.timeout < other.timeout - - __cmp__ = __lt__ - class ThreadWorker(base.Worker):