From ee04c218cec2426cbe244745634e1fe5f4a83b84 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. Fixes: https://github.com/nodejs/node/issues/14856 --- doc/api/http.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 50fa3e1135ad78..23ece71f4a0966 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'