Message361562
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. |
|
Date |
User |
Action |
Args |
2020-02-07 10:35:05 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, njs, yselivanov, ammar2 |
2020-02-07 10:35:05 | vstinner | set | messageid: <1581071705.06.0.502460408914.issue38699@roundup.psfhosted.org> |
2020-02-07 10:35:05 | vstinner | link | issue38699 messages |
2020-02-07 10:35:04 | vstinner | create | |
|