Message218121
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:27 | neologix | set | recipients:
+ neologix, pitrou, vstinner, sbt |
2014-05-08 19:13:27 | neologix | set | messageid: <1399576407.19.0.800132565912.issue21455@psf.upfronthosting.co.za> |
2014-05-08 19:13:26 | neologix | link | issue21455 messages |
2014-05-08 19:13:25 | neologix | create | |
|