Skip to content

Commit b02b93b

Browse files
rmgbnoordhuis
authored andcommitted
doc: note a gotcha with http.Server sockets
1 parent ccd3722 commit b02b93b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

doc/api/http.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ per connection (in the case of keep-alive connections).
6464
`function (socket) { }`
6565

6666
When a new TCP stream is established. `socket` is an object of type
67-
`net.Socket`. Usually users will not want to access this event. The
68-
`socket` can also be accessed at `request.connection`.
67+
`net.Socket`. Usually users will not want to access this event. In
68+
particular, the socket will not emit `readable` events because of how
69+
the protocol parser attaches to the socket. The `socket` can also be
70+
accessed at `request.connection`.
6971

7072
### Event: 'close'
7173

0 commit comments

Comments
 (0)