-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fixed ValueError for AF_INET6 sockets #2431
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.3 #2431 +/- ##
=======================================
Coverage 97.23% 97.23%
=======================================
Files 39 39
Lines 8224 8224
Branches 1442 1442
=======================================
Hits 7997 7997
Misses 98 98
Partials 129 129
Continue to review full report at Codecov.
|
tests/test_run_app.py
Outdated
@@ -42,6 +42,16 @@ | |||
) | |||
del _has_unix_domain_socks, _abstract_path_failed | |||
|
|||
has_ipv6 = socket.has_ipv6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has_ipv6
should be upper-cased: it is a contant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've copied it from another test module as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But please make it upper cased anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.
thanks! |
To avoid this bug on some machines: Traceback (most recent call last): [...] web.run_app(app, sock=sock, access_log=logger) [...] host, port = sock.getsockname() ValueError: too many values to unpack (expected 2) See a better description at aio-libs/aiohttp#2431
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
What do these changes do?
There is an issue if you pass a preexisting INET6 socket to the aiohttp.web.run_app function.
Are there changes in behavior for the user?
It's a bugfix.
Related issue number
There is no tracked issue.
Checklist
CONTRIBUTORS.txt
changes
folder<issue_id>.<type>
for example (588.bug)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.