From f2f66b4cfb54264480ff5212a46203f992803927 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 10 Aug 2018 11:16:45 -0700 Subject: [PATCH] http2: remove `streamError` from docs `streamError` was removed quite some time ago but the docs and code comments weren't updated. Fix that. Fixes: https://github.com/nodejs/node/issues/20211 Backport-PR-URL: https://github.com/nodejs/node/pull/22850 PR-URL: https://github.com/nodejs/node/pull/22246 Reviewed-By: Luigi Pinca Reviewed-By: Jon Moss Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina Reviewed-By: Vse Mozhet Byt Reviewed-By: Trivikram Kamat --- doc/api/http2.md | 12 ------------ lib/internal/http2/compat.js | 4 +--- .../test-http2-compat-serverresponse-destroy.js | 3 +-- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index dd201c9dd7dec2..85b3ba4363ada5 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1505,10 +1505,6 @@ added: v8.4.0 * Extends: {net.Server} -In `Http2Server`, there are no `'clientError'` events as there are in -HTTP1. However, there are `'sessionError'`, and `'streamError'` events for -errors emitted on the socket, or from `Http2Session` or `Http2Stream` instances. - #### Event: 'checkContinue' - -If a `ServerHttp2Stream` emits an `'error'` event, it will be forwarded here. -The stream will already be destroyed when this event is triggered. - #### Event: 'stream'