We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e6457 commit d8e3b05Copy full SHA for d8e3b05
lib/connection.js
@@ -114,6 +114,11 @@ function Connection (opts)
114
});
115
this.addCommand(handshakeCommand);
116
}
117
+
118
+ // in case there was no initiall handshake but we need to read sting, assume it utf-8
119
+ // most common example: "Too many connections" error ( packet is sent immediately on connection attempt, we don't know server encoding yet)
120
+ // will be overwrittedn with actial encoding value as soon as server handshake packet is received
121
+ this.serverEncoding = 'utf8';
122
123
util.inherits(Connection, EventEmitter);
124
0 commit comments