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: #41011

PR-URL: #41014
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
lpinca authored Dec 1, 2021
1 parent 6f74010 commit 255b1db
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 255b1db

Please sign in to comment.