Skip to content

Commit 348c100

Browse files
lpincadanielleadams
authored andcommitted
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: #41011 PR-URL: #41014 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent ca8f6e7 commit 348c100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ client's authentication details.
23092309

23102310
This property is guaranteed to be an instance of the {net.Socket} class,
23112311
a subclass of {stream.Duplex}, unless the user specified a socket
2312-
type other than {net.Socket}.
2312+
type other than {net.Socket} or internally nulled.
23132313

23142314
### `message.statusCode`
23152315

0 commit comments

Comments
 (0)