joyent/node — pull request #5697 by isaacs (2013-06-14 22:59:14+00:00)
Title: net: Do not destroy socket mid-write

The fix in e0519ace315c7ce14278d5eaab8d1d72a0a0a054 is overly zealous,
and can destroy a socket while there are still outstanding writes in
progress.

Closes GH-5688