joyent/node — pull request #7738 by chrisdickinson (2014-06-05 20:07:47+00:00)
Title: dgram: make .send cb act as an "error" event handler.

This allows users to provide a callback that handles potential
errors resulting from a `socket.send` call. The original behavior
of emitting the error event on the socket is preserved.

Fixes joyent/node#4846.