Skip to content

Commit 7f2cdd3

Browse files
ShogunPandaMylesBorins
authored andcommittedFeb 20, 2023
http: add note about clientError event
PR-URL: #46584 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 217f2f6 commit 7f2cdd3

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
@@ -1310,7 +1310,8 @@ changes:
13101310
If a client connection emits an `'error'` event, it will be forwarded here.
13111311
Listener of this event is responsible for closing/destroying the underlying
13121312
socket. For example, one may wish to more gracefully close the socket with a
1313-
custom HTTP response instead of abruptly severing the connection.
1313+
custom HTTP response instead of abruptly severing the connection. The socket
1314+
**must be closed or destroyed** before the listener ends.
13141315

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

0 commit comments

Comments
 (0)
Please sign in to comment.