Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 338c8f6

Browse filesBrowse files
ShogunPandaMylesBorins
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 aff78cd commit 338c8f6
Copy full SHA for 338c8f6

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.