You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dns: don't skip getaddrino/getnameinfo when c-ares init fails #8966
#8710 makes process.binding('cares_wrap') throw a JS exception instead of aborting when ares_library_init() or ares_init_options() fail.
Maybe we can do better. We can still bring up the bindings for getaddrinfo and getnameinfo because those don't depend on c-ares (although if c-ares fails, there is a goodly chance the others won't work either.)
Policy question: do we think it's better to quit or keep on trucking in a franken-init state?
i'd like some way around this. my set up is just setting up a LAN with a switch and letting windows assign an IP and Mask, however no DNS is set. The machines should still be able to communicate with no DNS set.
We have a client server application with a C++/Qt UI and a NodeJS backend (running as a windows service). We've seen this bug only once but in that case it prevents our application (which needs only to listen on 127.0.0.1 and needs no DNS) from working.
Activity
cjihrig commentedon Oct 8, 2016
My vote is to quit. If people really need the franken-init state, perhaps we could add flag for it.
weagle08 commentedon Oct 16, 2016
i'd like some way around this. my set up is just setting up a LAN with a switch and letting windows assign an IP and Mask, however no DNS is set. The machines should still be able to communicate with no DNS set.
Trott commentedon Jul 15, 2017
@bnoordhuis @cjihrig Should this remain open? If so, should we add
help wantedand maybe evenmentor available?mika-fischer commentedon Jul 15, 2017
We have a client server application with a C++/Qt UI and a NodeJS backend (running as a windows service). We've seen this bug only once but in that case it prevents our application (which needs only to listen on 127.0.0.1 and needs no DNS) from working.
So we would also be interested in a fix.
bnoordhuis commentedon Jul 17, 2017
I'm on the fence myself but happy to review pull requests or answer questions. Labels added.
mika-fischer commentedon Jul 27, 2017
Looks like this might be fixed in c-ares 1.13.0:
c-ares/c-ares@55bbe92
https://c-ares.haxx.se/mail/c-ares-archive-2017-06/0003.shtml
EDIT: Actually, looks like it should already be fixed in 1.12...
ryzokuken commentedon Mar 4, 2018
It is fixed already? In that case, should this issue be closed?
bnoordhuis commentedon Mar 5, 2018
Not fixed and no consensus on whether it should be fixed.
mika-fischer commentedon Mar 5, 2018
@bnoordhuis I think this is actually two issues now:
ares_library_init()orares_init_options()fail andares_init_options()don't fail under benign circumstances (like network with no DNS configured).I don't care much about 1) but I do care about 2). Do you mean to say that c-ares might never be updated in Node.js?
bnoordhuis commentedon Mar 5, 2018
This issue is about (1), not (2). If you want to see c-ares updated, can you file a new issue?
mika-fischer commentedon Mar 5, 2018
Actually, c-ares 1.13 it's already in Node 9, so 2) is not relevant anymore. Sorry for the noise!
dhanushuUzumaki commentedon Apr 21, 2018
Hi, Is this available? I would like to work on this.
bnoordhuis commentedon Apr 21, 2018
@dhanushuUzumaki See #8966 (comment). You're welcome to open a pull request but I can't promise it'll be accepted.
refack commentedon Nov 11, 2018
Put into https://github.com/nodejs/node/projects/13 backlog