From a516edc5e781ad3b1df1bd47b56ae86d146aef6a Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 29 Nov 2021 13:00:43 +0100 Subject: [PATCH] doc: specify that `message.socket` can be nulled The `socket` property of the `IncomingMessage` object is nulled on the server after calling `message.destroy()` and on the client after a request completes and the socket is kept alive. Fixes: https://github.com/nodejs/node/issues/41011 --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index cec579ca75fb8a..4c798acec4f40a 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2321,7 +2321,7 @@ client's authentication details. This property is guaranteed to be an instance of the {net.Socket} class, a subclass of {stream.Duplex}, unless the user specified a socket -type other than {net.Socket}. +type other than {net.Socket} or internally nulled. ### `message.statusCode`