Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BPO-17561: set create_server backlog default to None #12735

Merged
merged 2 commits into from
Apr 9, 2019
Merged

BPO-17561: set create_server backlog default to None #12735

merged 2 commits into from
Apr 9, 2019

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