Author vstinner
Recipients neologix, pitrou, sbt, vstinner
Date 2014-05-12.22:18:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399933102.71.0.586963037533.issue21455@psf.upfronthosting.co.za>
In-reply-to
Content
An article suggests to use max(1024, socket.SOMAXCONN) (to "listen() backlog as large as possible") instead of socket.SOMAXCONN because the OS maximum can be larger than SOMAXCONN (and that it's not possible in Python to get the OS value):
http://utcc.utoronto.ca/~cks/space/blog/python/AvoidSOMAXCONN?showcomments#comments

The following article tries to explain why the default limit is 128 on Linux:
https://derrickpetzold.com/p/somaxconn/

Article giving the value chosen by Windows when SOMAXCONN is passed: it depends on the Windows version (between 5 and 50, hard limit of 200 on Windows 7):
http://stackoverflow.com/questions/4709756/listen-maximum-queue-size-per-windows-version
History
Date User Action Args
2014-05-12 22:18:22vstinnersetrecipients: + vstinner, pitrou, neologix, sbt
2014-05-12 22:18:22vstinnersetmessageid: <1399933102.71.0.586963037533.issue21455@psf.upfronthosting.co.za>
2014-05-12 22:18:22vstinnerlinkissue21455 messages
2014-05-12 22:18:22vstinnercreate