From 37b3e06436ed9c2f4410aab3ed6d15dacb07ba3b Mon Sep 17 00:00:00 2001 From: Kumar Rishav Date: Tue, 2 Apr 2024 16:34:22 -0500 Subject: [PATCH] https: remove closeIdleConnections function while calling server close Correcting the #50194 backporting mistake. server.closeIdleConnections shouldn't be called while server.close in node v18. This behavior is for node v19 and above. fixes: nodejs#52330, nodejs#51677, --- lib/_http_server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 0dbf11ce079156..1f90b2237f6699 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -506,7 +506,6 @@ function setupConnectionsTracking() { } function httpServerPreClose(server) { - server.closeIdleConnections(); clearInterval(server[kConnectionsCheckingInterval]); }