Skip to content

Commit d06f582

Browse files
committed
mark handshake error as fatal (this makes it be main error and subsequent connection close nut reported as second error)
1 parent e4eae27 commit d06f582

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/commands/client_handshake.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ClientHandshake.prototype.handshakeInit = function (helloPacket, connection) {
7575
var command = this;
7676

7777
this.on('error', function (e) {
78+
connection._fatalError = e;
7879
connection._protocolError = e;
7980
});
8081

0 commit comments

Comments
 (0)