()
| 609 | } |
| 610 | |
| 611 | function 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 | |
| 624 | function httpServerPreClose(server) { |
| 625 | server.closeIdleConnections(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…