joyent/node — pull request #8768 by chrisdickinson (2014-11-22 07:08:00+00:00)
Title: net: forward Socket#end cb argument to Duplex#end

The callback parameter was being dropped when Socket.prototype.end
called Duplex.prototype.end. This remedies that situation.

This problem exists in both the v0.10 and v0.12 branches.

Fixes: https://github.com/joyent/node/issues/8759

R=@indutny