From 83190a808a582280caf21f0c6b31027dc3fb064a Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 21 Nov 2019 00:00:43 +0100 Subject: [PATCH] http: make maximum header size configurable per-stream or per-server Make `maxHeaderSize` a.k.a. `--max-header-size` configurable now that the legacy parser is gone (which only supported a single global value). Refs: https://github.com/nodejs/node/pull/30567 --- doc/api/http.md | 15 ++++ lib/_http_client.js | 10 ++- lib/_http_server.js | 10 ++- src/node_http_parser.cc | 18 +++- src/node_options.cc | 8 +- src/node_options.h | 2 +- .../test-http-max-header-size-per-stream.js | 82 +++++++++++++++++++ 7 files changed, 135 insertions(+), 10 deletions(-) create mode 100644 test/parallel/test-http-max-header-size-per-stream.js diff --git a/doc/api/http.md b/doc/api/http.md index c3ba806def480c..dacb443379b971 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2047,6 +2047,9 @@ Found'`.