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

STINNER Victor report at bugs.python.org
Tue Nov 5 09:47:51 EST 2019


STINNER Victor <vstinner at python.org> added the comment:

> I just saw an article suggesting to use 4096 instead:

In fact, it's a change in the Linux kernel directly proposed by Eric Dumazet (Google) for Linux kernel 5.5:
https://lore.kernel.org/netdev/20191030163620.140387-1-edumazet@google.com/

The change has already been merged upstream:

/* Maximum queue length specifiable by listen.  */
#define SOMAXCONN	4096

https://github.com/torvalds/linux/blob/a99d8080aaf358d5d23581244e5da23b35e340b9/include/linux/socket.h#L265

----------

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


More information about the Python-bugs-list mailing list