Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make Socket.getaddrinfo interruptible #2827
Before, Socket.getaddrinfo was using the blocking
Since we already have support for
Changes LGTM, just minor code indentation divergences.
The async nature of the lookup seems to have issues with this test:
Before, Socket.getaddrinfo was using the blocking getaddrinfo(3) call. That didn't allow to wrap it into Timeout.timeout or interrupt the thread. Since we already have support for getaddrinfo_a(3) - the async version of getaddrinfo, we should be able to make Socket.getaddrinfo leverage that when async version is available in the system.