Skip to content

Conversation

@giampaolo
Copy link
Contributor

@giampaolo giampaolo commented Feb 15, 2019

- allow_reuse_address from False to True on POSIX
- request_queue_size from 5 to 0

allow_reuse_address = False
allow_reuse_address = \
os.name not in ('nt', 'cygwin') and hasattr(socket, 'SO_REUSEADDR')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the OS check here? Is SO_REUSEADDR available but not appropriate for use on Windows? If so, I suggest adding a comment.

Also, why use os.name rather than sys.platform?

@vstinner vstinner closed this May 3, 2021
@vstinner vstinner deleted the branch python:master May 3, 2021 21:29
@taleinat
Copy link
Contributor

taleinat commented May 4, 2021

@vstinner, why did you close this with no comment, while the bpo issue is still open?

@python python deleted a comment May 4, 2021
@taleinat
Copy link
Contributor

taleinat commented May 4, 2021

Could this be due to the renaming of the "master" branch to "main"?

@vstinner
Copy link
Member

@vstinner, why did you close this with no comment, while the bpo issue is still open?

I didn't touch this PR. The PR was likely closed when the master branch was renamed to main, because the original branch no longer exists.

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.

6 participants