From 86337daa3c1aa74a64fc8e3eb6347482edfc9af1 Mon Sep 17 00:00:00 2001 From: Micheil Smith Date: Fri, 3 Dec 2010 02:37:23 +1100 Subject: [PATCH] Fixed issue #43 --- lib/ws/connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ws/connection.js b/lib/ws/connection.js index 014ac17..3e35843 100644 --- a/lib/ws/connection.js +++ b/lib/ws/connection.js @@ -114,7 +114,8 @@ function Connection(manager, options, req, socket, upgradeHead) { socket.on('error', function(e) { debug(connection.id, 'error', e); - if (e.errno != 32) { + if (e.errno != constants.EPIPE || + e.errno != connection.ECONNRESET) { connection.emit('error', e); } connection.state(5);