Skip to content

Commit

Permalink
Fixed; Make sure to not execute any other connection operations after…
Browse files Browse the repository at this point in the history
… WebSocket write error
  • Loading branch information
rauchg committed Feb 15, 2011
1 parent f534a26 commit d304ce1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/socket.io/transports/websocket.js
Expand Up @@ -80,6 +80,7 @@ WebSocket.prototype._onConnect = function(req, socket){
this.connection.write(headers.concat('', '').join('\r\n'));
} catch(e){
this._onClose();
return;
}

this.connection.setTimeout(0);
Expand Down

0 comments on commit d304ce1

Please sign in to comment.