Skip to content

Commit 7aa7be0

Browse files
committed
http.IncomingMessage: fix forgotten 'message' to 'socket'
1 parent 503f279 commit 7aa7be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ When a new TCP stream is established. `socket` is an object of type
9292
`net.Socket`. Usually users will not want to access this event. In
9393
particular, the socket will not emit `readable` events because of how
9494
the protocol parser attaches to the socket. The `socket` can also be
95-
accessed at `request.connection`.
95+
accessed at `request.socket`.
9696

9797
### Event: 'close'
9898

@@ -1020,7 +1020,7 @@ received. Only populated at the 'end' event.
10201020
* `msecs` {Number}
10211021
* `callback` {Function}
10221022

1023-
Calls `message.connection.setTimeout(msecs, callback)`.
1023+
Calls `message.socket.setTimeout(msecs, callback)`.
10241024

10251025
Returns `message`.
10261026

0 commit comments

Comments
 (0)