From 7b2660630cccbc1ca61fb151a2efafb68ebecaa4 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 | 10 ++- 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, 182 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 6f8150480215d9..3d6bdbe7e7e114 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1939,6 +1939,9 @@ error will be thrown.