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

netutil: Ignore EADDRNOTAVAIL when binding to localhost ipv6 #2684

Merged
merged 3 commits into from
Jun 22, 2019

Conversation

bdarnell
Copy link
Member

This happens in docker with default configurations and is generally
harmless.

Fixes #2274

The first commit turns out to be unrelated; I thought it would streamline the second commit but there's no exception type for EADDRNOTAVAIL. With the third commit, the tests run cleanly in docker.

Where possible, replace use of errno with the exception hierarchy
available since python 3.3. Remove explicit handling of EINTR which
has been automatic since python 3.5
This happens in docker with default configurations and is generally
harmless.

Fixes tornadoweb#2274
Root is always allowed to bind to low port numbers, so we can't
simulate failure in this case. This is the last remaining failure when
running tests in docker.
@bdarnell bdarnell merged commit 3780d76 into tornadoweb:master Jun 22, 2019
@bdarnell bdarnell deleted the socket-error branch June 22, 2019 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traceback binding socket
1 participant