diff --git a/lib/net.js b/lib/net.js index e96e3c6900..8d88c69bba 100644 --- a/lib/net.js +++ b/lib/net.js @@ -635,7 +635,11 @@ Socket.prototype._onReadable = function() { pool.length - pool.used); DTRACE_NET_SOCKET_READ(this, bytesRead); } catch (e) { - self.destroy(e); + if (e.code == 'ECONNRESET') { + self.destroy(); + } else { + self.destroy(e); + } return; }