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

Method checkHealth

lib/host.js:349–354  ·  view source on GitHub ↗

* Checks the health of a connection in the pool * @param {Connection} connection * @internal * @ignore

(connection)

Source from the content-addressed store, hash-verified

347 * @ignore
348 */
349 checkHealth(connection) {
350 if (connection.timedOutOperations <= this.options.socketOptions.defunctReadTimeoutThreshold) {
351 return;
352 }
353 this.removeFromPool(connection);
354 }
355
356 /**
357 * @param {Connection} connection

Callers 2

_handleErrorMethod · 0.80
host-tests.jsFile · 0.80

Calls 1

removeFromPoolMethod · 0.95

Tested by

no test coverage detected