-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Creating TCPSocket fails with getaddrinfo: Non-recoverable failure in name resolution (Socket::Error)
#2653
Comments
We should maybe revert the commit that introduces this "feature" (anti-feature, I'd say, because it's broken). Problem is, |
If we don't use libevent dns, then we're up to blocking Crystal altogether whenever we make a request... not just the current fiber, but everything, which can take from some hundred milliseconds to 5 seconds if unlucky :( I looked around and there aren't any correct solution. Even |
So, is this something that's only broken on Linux or is it an issue elsewhere as well? I'll have to take a closer look at the IPSocket code, but I'm not sure what's causing this, since the example libnotify code for a DNS lookup works in C. |
Should we close all these tickets and create a more general meta ticket about implementing a proper DNS/mDNS resolver? |
@jhass Please! And thank you for cleaning up some issues :-) |
Closing in favor of #2660 |
May be related to #2568?
Using the same code in that issue:
The resulting output is (for Crystal - it works with ruby code, so It's probably something related to libevent):
I'm on ArchLinux, running Crystal version
0.17.3
, and libevent version2.0.22-2
.The text was updated successfully, but these errors were encountered: