Skip to content

Commit c1cee69

Browse files
committed
Set the listen backlog from 10 to socket.SOMAXCONN (which on Linux is 128)
1 parent 9ce2fa0 commit c1cee69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def main(listenip, ssh_cmd, remotename, python, latency_control, dns,
373373
if not bound:
374374
assert(last_e)
375375
raise last_e
376-
listener.listen(10)
376+
listener.listen(socket.SOMAXCONN)
377377
listenip = listener.getsockname()
378378
debug1('Listening on %r.\n' % (listenip,))
379379

0 commit comments

Comments
 (0)