Skip to content

Commit

Permalink
revert change considering connection as idle
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Jul 18, 2023
1 parent 4e12ebe commit bc90585
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 bc90585

Please sign in to comment.