joyent/node — pull request #3214 by bts (2012-05-03 20:47:38+00:00)
Title: Surface localAddress bind failure in connect

Currently when `connect` is passed an invalid `localAddress` and the call to `bind` fails, the error is ignored. As a result, outbound requests are sent from a different address than the user expects.

This change handles failure to `bind` in the same manner as failure to `connect`.