From 7fa2bee5e779faec025837e78a6837bb32bd07fc Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 17 Sep 2017 09:30:16 +0200 Subject: [PATCH] doc: add documentation for the 'timeout' event Adds the `'timeout'` event to the `http.ClientRequest` documentation. PR-URL: https://github.com/nodejs/node/pull/15443 Fixes: https://github.com/nodejs/node/issues/14856 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- doc/api/http.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index e646e291ac724c..f7355e0fbe6630 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -427,6 +427,16 @@ added: v0.5.3 Emitted after a socket is assigned to this request. +### Event: 'timeout' + + +Emitted when the underlying socket times out from inactivity. This only notifies +that the socket has been idle. The request must be aborted manually. + +See also: [`request.setTimeout()`][] + ### Event: 'upgrade'