lib: make sure clear the old timer in http server

PR-URL: https://github.com/nodejs/node/pull/52118
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
theanarkh authored and marco-ippolito committed 2024-05-03 08:30:15 +02:00
1 parent d6f9ca385c
commit d33fc36784
2 files changed
+27

No files matched your search

+3
View File
@@ -506,6 +506,9 @@ function setupConnectionsTracking() {
this[kConnections] = new ConnectionsList();
}
if (this[kConnectionsCheckingInterval]) {
clearInterval(this[kConnectionsCheckingInterval]);
}
// This checker is started without checking whether any headersTimeout or requestTimeout is non zero
// otherwise it would not be started if such timeouts are modified after createServer.
this[kConnectionsCheckingInterval] =