MCPcopy Index your code
hub / github.com/nodejs/node / setupConnectionsTracking

Function setupConnectionsTracking

lib/_http_server.js:611–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609}
610
611function setupConnectionsTracking() {
612 // Start connection handling
613 this[kConnections] ||= new ConnectionsList();
614
615 if (this[kConnectionsCheckingInterval]) {
616 clearInterval(this[kConnectionsCheckingInterval]);
617 }
618 // This checker is started without checking whether any headersTimeout or requestTimeout is non zero
619 // otherwise it would not be started if such timeouts are modified after createServer.
620 this[kConnectionsCheckingInterval] =
621 setInterval(checkConnections.bind(this), this.connectionsCheckingInterval).unref();
622}
623
624function httpServerPreClose(server) {
625 server.closeIdleConnections();

Callers

nothing calls this directly

Calls 4

clearIntervalFunction · 0.85
setIntervalFunction · 0.70
unrefMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…