Skip to content

Commit ede4151

Browse files
lpincaLinkgoron
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: nodejs#41011 PR-URL: nodejs#41014 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent 5fd35c5 commit ede4151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ client's authentication details.
23212321

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

23262326
### `message.statusCode`
23272327

0 commit comments

Comments
 (0)