[issue38699] socket: change listen() default backlog from 128 to 4096?

Nathaniel Smith report at bugs.python.org
Fri Dec 6 18:41:43 EST 2019


Nathaniel Smith <njs at pobox.com> added the comment:

Trio uses 65535 as the default backlog argument. There's a big comment here explaining why: https://github.com/python-trio/trio/blob/master/trio/_highlevel_open_tcp_listeners.py

This doesn't actually set the backlog to 65635; instead it tells the kernel to use the biggest backlog that it feels comfortable with (e.g. /proc/sys/net/core/somaxconn on Linux).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38699>
_______________________________________


More information about the Python-bugs-list mailing list