Skip to content

Commit f5669f6

Browse files
authored
Merge pull request #3033 from benoitc/fix-gthread
revert change considering connection as idle
2 parents 4e12ebe + bc90585 commit f5669f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gunicorn/workers/gthread.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,10 @@ def accept(self, server, listener):
122122
sock, client = listener.accept()
123123
# initialize the connection object
124124
conn = TConn(self.cfg, sock, client, server)
125-
# set timeout to ensure it will not be in the loop too long
126-
conn.set_timeout()
127125

128126
self.nr_conns += 1
129127
# wait until socket is readable
130128
with self._lock:
131-
self._keep.append(conn)
132129
self.poller.register(conn.sock, selectors.EVENT_READ,
133130
partial(self.on_client_socket_readable, conn))
134131
except EnvironmentError as e:

0 commit comments

Comments
 (0)