From 58682d823acb0e566f16d1d8b33b83dfebf3aa5d Mon Sep 17 00:00:00 2001 From: rickyes Date: Sun, 12 Apr 2020 02:07:35 +0800 Subject: [PATCH] tls: add highWaterMark option for connect PR-URL: https://github.com/nodejs/node/pull/32786 Fixes: https://github.com/nodejs/node/issues/32781 Reviewed-By: Zeyu Yang Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Andrey Pechkurov --- doc/api/https.md | 6 +- doc/api/tls.md | 5 ++ lib/_tls_wrap.js | 4 +- test/parallel/test-https-hwm.js | 66 ++++++++++++++++++++ test/parallel/test-tls-connect-hwm-option.js | 53 ++++++++++++++++ 5 files changed, 132 insertions(+), 2 deletions(-) create mode 100644 test/parallel/test-https-hwm.js create mode 100644 test/parallel/test-tls-connect-hwm-option.js diff --git a/doc/api/https.md b/doc/api/https.md index ac53b6f0fde..2b19831e9e9 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -238,6 +238,9 @@ Global instance of [`https.Agent`][] for all HTTPS client requests.