From 9590f577b03f621faf35f60e439b87431d293dee Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Mon, 18 Nov 2019 21:44:21 +0200 Subject: [PATCH] http2: allow to configure maximum tolerated invalid frames PR-URL: https://github.com/nodejs/node/pull/30534 Fixes: https://github.com/nodejs/node/issues/30505 Reviewed-By: Anna Henningsen Reviewed-By: David Carlier Reviewed-By: James M Snell --- doc/api/http2.md | 12 +++ lib/internal/http2/core.js | 16 +++- src/node_http2.cc | 9 +- src/node_http2.h | 4 +- .../test-http2-createsecureserver-options.js | 31 ++++++- .../test-http2-createserver-options.js | 31 ++++++- .../parallel/test-http2-max-invalid-frames.js | 86 +++++++++++++++++++ 7 files changed, 181 insertions(+), 8 deletions(-) create mode 100644 test/parallel/test-http2-max-invalid-frames.js diff --git a/doc/api/http2.md b/doc/api/http2.md index 53461ac58d4605..7ac4f6ffa129f5 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1941,6 +1941,9 @@ error will be thrown.