MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / errorConnecting

Method errorConnecting

lib/connection.js:304–314  ·  view source on GitHub ↗
(err, destroy, callback)

Source from the content-addressed store, hash-verified

302 }
303
304 errorConnecting(err, destroy, callback) {
305 this.log('warning', `There was an error when trying to connect to the host ${this.endpointFriendlyName}`, err);
306 if (destroy) {
307 //there is a TCP connection that should be killed.
308 this.netClient.destroy();
309 }
310
311 this._metrics.onConnectionError(err);
312
313 callback(err);
314 }
315
316 /**
317 * Sets the connection to ready/connected status

Callers 2

openMethod · 0.80
startupCallbackMethod · 0.80

Calls 2

onConnectionErrorMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected