server: close all connections

without this the server still holds on to active connections in node 18
This commit is contained in:
Girish Ramakrishnan
2025-02-06 15:00:26 +01:00
parent fa64191082
commit edb9bac503
+1
View File
@@ -483,6 +483,7 @@ async function stop() {
if (!gHttpServer) return;
await platform.uninitialize();
gHttpServer.closeAllConnections();
await util.promisify(gHttpServer.close.bind(gHttpServer))();
gHttpServer = null;