From bc905859a604a73dd2626b07cf12621f3ef36716 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 19 Jul 2023 00:10:24 +0200 Subject: [PATCH] revert change considering connection as idle --- gunicorn/workers/gthread.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py index dbbb7c3ae..c9c42345f 100644 --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -122,13 +122,10 @@ def accept(self, server, listener): sock, client = listener.accept() # initialize the connection object conn = TConn(self.cfg, sock, client, server) - # set timeout to ensure it will not be in the loop too long - conn.set_timeout() self.nr_conns += 1 # wait until socket is readable with self._lock: - self._keep.append(conn) self.poller.register(conn.sock, selectors.EVENT_READ, partial(self.on_client_socket_readable, conn)) except EnvironmentError as e: