Skip to content

Commit abeee99

Browse files
ShogunPandadanielleadams
authored andcommitted
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 a2b103a commit abeee99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/http.md

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy