Skip to content

Commit abeee99

Browse files
ShogunPandadanielleadams
authored andcommitted
http: add note about clientError event
PR-URL: #46584 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent a2b103a commit abeee99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/http.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,8 @@ changes:
13081308
If a client connection emits an `'error'` event, it will be forwarded here.
13091309
Listener of this event is responsible for closing/destroying the underlying
13101310
socket. For example, one may wish to more gracefully close the socket with a
1311-
custom HTTP response instead of abruptly severing the connection.
1311+
custom HTTP response instead of abruptly severing the connection. The socket
1312+
**must be closed or destroyed** before the listener ends.
13121313

13131314
This event is guaranteed to be passed an instance of the {net.Socket} class,
13141315
a subclass of {stream.Duplex}, unless the user specifies a socket

0 commit comments

Comments
 (0)