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 vstinner
Recipients ammar2, giampaolo.rodola, njs, vstinner, yselivanov
Date 2020-02-07.10:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581071705.06.0.502460408914.issue38699@roundup.psfhosted.org>
In-reply-to
Content
There is no clear consensus to change socket.listen() default backlog, so I close the issue.

> Anyway asyncio at least should probably update its default.

If someone cares, please open a separated issue ;-)

> To be clear: I do still think that using a large value by default, and clamping user input values at 65535, would be improvements. I just don't think they're important enough to spend energy arguing about it :-).

I dislike having to workaround operating system bugs. If the function misbehaves, I would prefer to see the OS being fixed, than Python trying to guess which value is supposed to work or not.

       int listen(int sockfd, int backlog);

backlog type is an int: its maximum value is INT_MAX. If the kernel rejects values larger than 65535, the kernel and/or the libc should reject such value.
History
Date User Action Args
2020-02-07 10:35:05vstinnersetrecipients: + vstinner, giampaolo.rodola, njs, yselivanov, ammar2
2020-02-07 10:35:05vstinnersetmessageid: <1581071705.06.0.502460408914.issue38699@roundup.psfhosted.org>
2020-02-07 10:35:05vstinnerlinkissue38699 messages
2020-02-07 10:35:04vstinnercreate