[issue38699] socket: change listen() default backlog from 128 to 4096?
STINNER Victor
report at bugs.python.org
Mon Dec 9 09:11:36 EST 2019
STINNER Victor <vstinner at python.org> added the comment:
> https://github.com/python-trio/trio/blob/master/trio/_highlevel_open_tcp_listeners.py
Extract:
# A large backlog can also use a bit more kernel memory, but this seems fairly
# negligible these days.
That's the main question here. Python is used on various platforms for various use cases.
Extract of the current C code:
/* We try to choose a default backlog high enough to avoid connection drops
* for common workloads, yet not too high to limit resource usage. */
int backlog = Py_MIN(SOMAXCONN, 128);
Maybe the status quo is just fine and this issue should be closed. It's trivial to override the default. This issue is stricted to the *default* value.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38699>
_______________________________________
More information about the Python-bugs-list
mailing list