Skip to content

Commit 681edbe

Browse files
lpincadanielleadams
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: #41011 PR-URL: #41014 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
1 parent 0e21c64 commit 681edbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ client's authentication details.
23132313

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

23182318
### `message.statusCode`
23192319

0 commit comments

Comments
 (0)