From 25a6e25a46ba578bb1c4d67798d09e87c290dbd2 Mon Sep 17 00:00:00 2001 From: Shiba Rin Date: Tue, 4 Apr 2023 21:22:48 +0800 Subject: [PATCH] http: add highWaterMark opt in http.createServer Add highWaterMark option when creating a new HTTP server. This option will override the default (readable|writable) highWaterMark values on sockets created. Fixes: https://github.com/nodejs/node/issues/46606 --- doc/api/http.md | 8 ++++ doc/api/net.md | 7 +++ lib/_http_outgoing.js | 5 +- lib/_http_server.js | 9 ++-- lib/http.js | 1 + lib/net.js | 13 +++++ .../test-http-server-options-highwatermark.js | 47 +++++++++++++++++++ 7 files changed, 84 insertions(+), 6 deletions(-) create mode 100644 test/parallel/test-http-server-options-highwatermark.js diff --git a/doc/api/http.md b/doc/api/http.md index 3b74f736d30bdf..30ce1ae3f43671 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3192,6 +3192,9 @@ Found'`.