Skip to content

bpo-36003: change socketserver.TCPServer reuse_addr and backlog default options#11875

Closed
giampaolo wants to merge 3 commits into
python:masterfrom
giampaolo:socketserver-default-opts
Closed

bpo-36003: change socketserver.TCPServer reuse_addr and backlog default options#11875
giampaolo wants to merge 3 commits into
python:masterfrom
giampaolo:socketserver-default-opts

Conversation

@giampaolo

@giampaolo giampaolo commented Feb 15, 2019

Copy link
Copy Markdown
Contributor

- allow_reuse_address from False to True on POSIX
- request_queue_size from 5 to 0
Comment thread Misc/NEWS.d/next/Library/2019-02-15-15-12-32.bpo-36003.D5t4_b.rst
Comment thread Lib/socketserver.py

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

Copy link
Copy Markdown
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

taleinat commented May 4, 2021

Copy link
Copy Markdown
Contributor

@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

taleinat commented May 4, 2021

Copy link
Copy Markdown
Contributor

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

@vstinner

Copy link
Copy Markdown
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