Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle synchronous socket.send error in sendUsingDnsCache (#271)
* Handle synchronous socket.send error in sendUsingDnsCache We are using UDP with DNS caching in production and noticed the occasional unhandled exception in our application when the datadog agent is unavailable. We tracked it down to the lookup branch of `sendUsingDnsCache` which calls `socket.send` within a callback. `socket.send` can throw a sync exception and not invoke `callback` as described here: https://nodejs.org/api/dgram.html#socketsendmsg-offset-length-port-address-callback. * PR feedback
- Loading branch information