Skip to content

Conversation

@giampaolo
Copy link
Contributor

@giampaolo giampaolo commented Apr 9, 2019

This fixes BB failures experienced in #11784 (comment) and references BPO-17561.

It turns out doing socket.listen(0) does not equal to "choose a reasonable default". It literally means "set backlog to 0". As such set backlog=None as the default for socket.create_server. With this in place the C extension will choose min(SOMAXCONN, 128) as the default backlog.

It turns out doing socket.listen(0) does not equal to "choose a
reasonable default". It actually means "set backlog to 0".
As such set backlog=None as the default for socket.create_server.
Fixes the following BB failures:
#11784 (comment)
Ref. BPO-1756, GH-11784.
@giampaolo
Copy link
Contributor Author

I would normally wait for review but considering 2 BBs are red and the change looks quite obvious I'm just going to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants