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

Method handleSocketError

lib/connection.js:339–342  ·  view source on GitHub ↗

* Handle socket errors, if the socket is not readable invoke all pending callbacks

(err)

Source from the content-addressed store, hash-verified

337 * Handle socket errors, if the socket is not readable invoke all pending callbacks
338 */
339 handleSocketError(err) {
340 this._metrics.onConnectionError(err);
341 this.clearAndInvokePending(err);
342 }
343
344 /**
345 * Cleans all internal state and invokes all pending callbacks of sent streams

Callers

nothing calls this directly

Calls 2

clearAndInvokePendingMethod · 0.95
onConnectionErrorMethod · 0.65

Tested by

no test coverage detected