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 and danielleadams committed Dec 13, 2021
1 parent 0e21c64 commit 681edbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Expand Up @@ -2313,7 +2313,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 681edbe

Please sign in to comment.