Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

dns: propagate domain for c-ares methods #8732

Closed

Conversation

chrisdickinson
Copy link

Per #5471, domains were not being propagated for certain dns methods (those using class Query in cares_wrap.cc). This rectifies the situation.

/cc @trevnorris

var assert = require('assert');
var cares = process.binding('cares_wrap');

var dns = require('dns');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be duplicated :(

@trevnorris
Copy link

Seeing domain's further pollute our code base always makes my stomach turn. If it wasn't so bloody expensive to do this then I'd recommend we just place it in the AsyncWrap constructor.

But, this LGTM for now. :)

chrisdickinson added a commit that referenced this pull request Nov 17, 2014
Fixes: #5471
PR-URL: #8732
Reviewed-by: Trevor Norris <[email protected]>
@chrisdickinson
Copy link
Author

Merged in 0fef250.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants