Closed tiran closed 2 years ago
handle_session_new uses socket.gethostbyname to resolve a hostname to IP address. Hostname lookup is blocking operation. The correct API is https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.getaddrinfo
handle_session_new
socket.gethostbyname
Ooooh, nice one @tiran! This already annoyed me, but I didn't find an async replacement.
handle_session_new
usessocket.gethostbyname
to resolve a hostname to IP address. Hostname lookup is blocking operation. The correct API is https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.getaddrinfo