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
When I run this with Node 6, there is no output, no errors caught, and the script exits prematurely. Looks like dns-socket emits a 'warning' instead of an 'error' in this case.
PR incoming.
Edit: just my $.02: I think this function in index.js should not try to pick/choose which errors constitute emitting a warning vs. an error, but should always emit an error instead:
it's because the UDP socket can emit some weird errors based on what you pass in to .send, if I always whitelist those. Unsure if that is still the issue with newer node versions.
Calling
socket.bind
with a bogus or unavailable address causes the process to fail silently. Example:When I run this with Node 6, there is no output, no errors caught, and the script exits prematurely. Looks like dns-socket emits a 'warning' instead of an 'error' in this case.
PR incoming.
Edit: just my $.02: I think this function in
index.js
should not try to pick/choose which errors constitute emitting a warning vs. an error, but should always emit an error instead:The text was updated successfully, but these errors were encountered: