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
  • Loading branch information
lpinca committed Nov 29, 2021
1 parent 1e8b296 commit a516edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
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 a516edc

Please sign in to comment.