Skip to content

Commit

Permalink
Merge pull request #3033 from benoitc/fix-gthread
Browse files Browse the repository at this point in the history
revert change considering connection as idle
  • Loading branch information
benoitc authored Jul 19, 2023
2 parents 4e12ebe + bc90585 commit f5669f6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gunicorn/workers/gthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f5669f6

Please sign in to comment.