Author neologix
Recipients neologix, pitrou, sbt, vstinner
Date 2014-05-08.19:13:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399576407.19.0.800132565912.issue21455@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2014-05-08 19:13:27neologixsetrecipients: + neologix, pitrou, vstinner, sbt
2014-05-08 19:13:27neologixsetmessageid: <1399576407.19.0.800132565912.issue21455@psf.upfronthosting.co.za>
2014-05-08 19:13:26neologixlinkissue21455 messages
2014-05-08 19:13:25neologixcreate