joyent/node — pull request #6968 by roamm (2014-01-25 17:57:05+00:00)
Title: Make Socket.prototype.destroy() re-entrance safe

so that we are free to call socket.destroy() in error event handler. Otherwise, we'll get server.getConnections() == -1.