Browse Source

Don't emit error on ECONNRESET - just close

Fix #670
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
8417870f51
  1. 6
      lib/net.js

6
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;
}

Loading…
Cancel
Save