Skip to content

Commit

Permalink
doc: specify that message.socket can be nulled
Browse files Browse the repository at this point in the history
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 <jasnell@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
lpinca authored and Linkgoron committed Jan 31, 2022
1 parent 5fd35c5 commit ede4151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Expand Up @@ -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`

Expand Down

0 comments on commit ede4151

Please sign in to comment.