Repository navigation
Prevent changing name servers while queries are outstanding - #191
Merged
Merged
Conversation
It doesn't work, per c-ares#41. Better to return an error code than to crash.
daviddrysdale
approved these changes
May 17, 2018
bradh352
self-requested a review
May 17, 2018 16:41
bradh352
approved these changes
May 17, 2018
bnoordhuis
added a commit
to bnoordhuis/io.js
that referenced
this pull request
Oct 22, 2018
Original commit message:
Prevent changing name servers while queries are outstanding
Changing name servers doesn't work, per c-ares/c-ares#41.
Better to return an error code than to crash.
Refs: c-ares/c-ares#41
Refs: c-ares/c-ares#191
Refs: nodejs#894
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It doesn't work, per #41. Probably it simply isn't intended usage. Better to return an error code than to crash.
ARES_ENOTIMPseems the most appropriate of the existing error codes. I did consider introducing a new one just for this, but it seemed a bit much. Happy to be change if you think otherwise.