From d7d927844247f30e8288c8b37e9681c6f936c1c3 Mon Sep 17 00:00:00 2001 From: Rob Hogan <2590098+robhogan@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:32:47 +0100 Subject: [PATCH] doc: note http.closeAllConnections excludes upgraded sockets PR-URL: https://github.com/nodejs/node/pull/53560 Reviewed-By: Luigi Pinca Reviewed-By: Paolo Insogna --- doc/api/http.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 0427dfff6123cb..3557e22085f8f7 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1705,8 +1705,10 @@ setTimeout(() => { added: v18.2.0 --> -Closes all connections connected to this server, including active connections -connected to this server which are sending a request or waiting for a response. +Closes all established HTTP(S) connections connected to this server, including +active connections connected to this server which are sending a request or +waiting for a response. This does _not_ destroy sockets upgraded to a different +protocol, such as WebSocket or HTTP/2. > This is a forceful way of closing all connections and should be used with > caution. Whenever using this in conjunction with `server.close`, calling this