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
| ) | ||
| del _has_unix_domain_socks, _abstract_path_failed | ||
|
|
||
| has_ipv6 = socket.has_ipv6 |
There was a problem hiding this comment.
has_ipv6 should be upper-cased: it is a contant
There was a problem hiding this comment.
I've copied it from another test module as is.
There was a problem hiding this comment.
But please make it upper cased anyway
|
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.txtchangesfolder<issue_id>.<type>for example (588.bug)issue_idchange 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.