From 0f870f208f132e37dd9a90514dbba3a85b02c047 Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Wed, 11 Jan 2023 12:57:23 +0530 Subject: [PATCH 1/2] doc: update http.setMaxIdleHTTPParsers arguments Fixes: https://github.com/nodejs/node/issues/46160 --- doc/api/http.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 16c069f3cd61f8..9a62b9e8563c59 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3777,7 +3777,7 @@ try { } ``` -## `http.setMaxIdleHTTPParsers` +## `http.setMaxIdleHTTPParsers(max)` -* {number} +* `max` {number} Set the maximum number of idle HTTP parsers. **Default:** `1000`. From f1d74021d9f9f6648bd2547be91fbd33f71b36b0 Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Wed, 11 Jan 2023 21:53:58 +0530 Subject: [PATCH 2/2] Update doc/api/http.md Co-authored-by: mscdex --- doc/api/http.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 9a62b9e8563c59..3fdaa0023c8422 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3785,9 +3785,9 @@ added: - v16.18.0 --> -* `max` {number} +* `max` {number} **Default:** `1000`. -Set the maximum number of idle HTTP parsers. **Default:** `1000`. +Set the maximum number of idle HTTP parsers. [RFC 8187]: https://www.rfc-editor.org/rfc/rfc8187.txt [`'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`]: errors.md#err_http_content_length_mismatch