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

asyncio ipv6 localhost bug in python3.7+3.8 #2

Open
lemoer opened this issue Mar 26, 2019 · 0 comments
Open

asyncio ipv6 localhost bug in python3.7+3.8 #2

lemoer opened this issue Mar 26, 2019 · 0 comments

Comments

@lemoer
Copy link
Member

lemoer commented Mar 26, 2019

There is a bug in python3.7 and python3.8, which affects pynet:

This patch fixes it:

--- /usr/lib/python3.7/asyncio/base_events.py.bak	2019-02-21 18:42:17.060122277 +0100
+++ /usr/lib/python3.7/asyncio/base_events.py	2019-02-21 18:49:36.886866750 +0100
@@ -942,8 +942,8 @@
                             sock = None
                             continue
                     if self._debug:
-                        logger.debug("connect %r to %r", sock, address)
-                    await self.sock_connect(sock, address)
+                        logger.debug("connect %r to %r", sock, (host, port))
+                    await self.sock_connect(sock, (host, port))
                 except OSError as exc:
                     if sock is not None:
                         sock.close()
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

No branches or pull requests

1 participant