Browse files

Fixed issue #43

  • Loading branch information...
1 parent 9ce4698 commit 86337daa3c1aa74a64fc8e3eb6347482edfc9af1 @miksago committed Dec 3, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/ws/connection.js
View
3 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);

2 comments on commit 86337da

@miksago
Owner

Fixed in version 1.4.03, thanks for catching this.

@miksago
Owner

Although, next time, probably create an issue, then reference the code lines, that way I have a back log of closed issues.

Please sign in to comment.