This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients neologix, pitrou, sbt, vstinner
Date 2014-05-08.19:13:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Having to pass an explicit backlog value to listen() is a pain: most people don't know which value to pass, and often end up using a value too small which can lead to connections being rejected.
For example, if you search throughout the standard library, you'll see many different hard-coded values.

The patch attached uses a default value of SOMAXCONN for socket.listen(): it should give a good default behavior (that's what golang does for example: in fact they go even further by checking the runtime value from net.core.somaxconn).

A second step would be to update the codebase to remove explicit backlogs (unless specific case).
Date User Action Args
2014-05-08 19:13:27neologixsetrecipients: + neologix, pitrou, vstinner, sbt
2014-05-08 19:13:27neologixsetmessageid: <>
2014-05-08 19:13:26neologixlinkissue21455 messages
2014-05-08 19:13:25neologixcreate