Added the ability to send socket.bind options via the ip parameter (now named options, but it's backwards compatible) in the client.resolve method. This allows us to set the socket as exclusive, which makes it play nice with clustering. https://github.com/joyent/node/issues/2194
UDP Sockets are supposed to be exclusive by default, however, we're running node 0.12.7 and aren't seeing this behavior. node-dns falls apart with clustering enabled and multiple workers unless we explicitly set exclusive to true.
I wasn't sure how to run tests (npm test just hangs after outputting 'client' to the console), but benchmark seems to handle regression fine and supports the changes.
Added the ability to send socket.bind options via the ip parameter (now named options, but it's backwards compatible) in the client.resolve method. This allows us to set the socket as exclusive, which makes it play nice with clustering. https://github.com/joyent/node/issues/2194
UDP Sockets are supposed to be exclusive by default, however, we're running node 0.12.7 and aren't seeing this behavior. node-dns falls apart with clustering enabled and multiple workers unless we explicitly set exclusive to true.
I wasn't sure how to run tests (npm test just hangs after outputting 'client' to the console), but benchmark seems to handle regression fine and supports the changes.