mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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:
1 parent
d6f9ca385c
commit
d33fc36784
2 files changed
+27
No files matched your search
@@ -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] =
|
||||
|
||||
Reference in new issue
Block a user