]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35545: Fix asyncio discarding IPv6 scopes (GH-11271)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 May 2019 09:05:19 +0000 (02:05 -0700)
committerGitHub <noreply@github.com>
Fri, 17 May 2019 09:05:19 +0000 (02:05 -0700)
commit94704048e2467dbb4c53ca02d103eab5671e84b3
tree82f1b9aeeb3b7776f52c655bfeecc64126ec68a4
parent4be0720beb1b4ea778c943c4cb1b6a514e08753d
bpo-35545: Fix asyncio discarding IPv6 scopes  (GH-11271)

This PR proposes a solution to [bpo-35545](https://bugs.python.org/issue35545) by adding an optional `flowinfo` and `scopeid` to `asyncio.base_events._ipaddr_info` to carry the full address information into `_ipaddr_info` and avoid discarding IPv6 specific information.

Changelog entry & regression tests to come.

https://bugs.python.org/issue35545
(cherry picked from commit ac8eb8f36bf7ca636f8d886eb65a3b532f4725d5)

Co-authored-by: Erwan Le Pape <lepaperwan@users.noreply.github.com>
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_base_events.py
Misc/NEWS.d/next/Library/2019-05-11-16-21-29.bpo-35545.FcvJvP.rst [new file with mode: 0644]