diff --git a/lib/net.js b/lib/net.js index 44b95073cf1445..b04c65abd6fab6 100644 --- a/lib/net.js +++ b/lib/net.js @@ -205,10 +205,6 @@ Socket.prototype._unrefTimer = function _unrefTimer() { // the user has called .end(), and all the bytes have been // sent out to the other side. -// If allowHalfOpen is false, or if the readable side has -// ended already, then destroy. -// If allowHalfOpen is true, then we need to do a shutdown, -// so that only the writable side will be cleaned up. function onSocketFinish() { // If still connecting - defer handling 'finish' until 'connect' will happen if (this.connecting) {