Fixed; Make sure to not execute any other connection operations after WebSocket write error

This commit is contained in:
Guillermo Rauch
2011-02-15 15:41:45 -08:00
parent f534a260b3
commit d304ce19d1

View File

@@ -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);