You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changeset fixes a problem in the original custom `connector`
factory method implementation that required the `server` config property
to be defined even though its value is ignored.
Removing the validation when `config.options.connector` is defined fixes
the problem.
Ref: #1540Fixes: #1541
Signed-off-by: Ruy Adorno <[email protected]>
@@ -1995,7 +2008,11 @@ class Connection extends EventEmitter {
1995
2008
this.socket=socket;
1996
2009
1997
2010
this.closed=false;
1998
-
this.debug.log('connected to '+this.config.server+':'+this.config.options.port);
2011
+
2012
+
constconnectedMsg=customConnector ?
2013
+
'connected via custom connector' :
2014
+
'connected to '+this.config.server+':'+this.config.options.port;
2015
+
this.debug.log(connectedMsg);
1999
2016
2000
2017
this.sendPreLogin();
2001
2018
this.transitionTo(this.STATE.SENT_PRELOGIN);
@@ -2073,7 +2090,8 @@ class Connection extends EventEmitter {
2073
2090
*/
2074
2091
connectTimeout(){
2075
2092
constmessage=`Failed to connect to ${this.config.server}${this.config.options.port ? `:${this.config.options.port}` : `\\${this.config.options.instanceName}`} in ${this.config.options.connectTimeout}ms`;
2076
-
this.debug.log(message);
2093
+
constcustomConnectorMessage=`Failed to connect using custom connector in ${this.config.options.connectTimeout}ms`;
0 commit comments