Skip to content

Commit d304ce1

Browse files
committed
Fixed; Make sure to not execute any other connection operations after WebSocket write error
1 parent f534a26 commit d304ce1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/socket.io/transports/websocket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ WebSocket.prototype._onConnect = function(req, socket){
8080
this.connection.write(headers.concat('', '').join('\r\n'));
8181
} catch(e){
8282
this._onClose();
83+
return;
8384
}
8485

8586
this.connection.setTimeout(0);

0 commit comments

Comments
 (0)