From 2d7911e52b1ce7ceb23f344fe51084e48665366c Mon Sep 17 00:00:00 2001 From: Howie Zhao Date: Sat, 26 Apr 2025 03:08:54 +0800 Subject: [PATCH] docs(README): corrected description of keepAlive option (#6872) Co-authored-by: Jay --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5b327e..b3454a1 100644 --- a/README.md +++ b/README.md @@ -551,7 +551,9 @@ These are the available config options for making requests. Only the `url` is re // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http // and https requests, respectively, in node.js. This allows options to be added like - // `keepAlive` that are not enabled by default. + // `keepAlive` that are not enabled by default before Node.js v19.0.0. After Node.js + // v19.0.0, you no longer need to customize the agent to enable `keepAlive` because + // `http.globalAgent` has `keepAlive` enabled by default. httpAgent: new http.Agent({ keepAlive: true }), httpsAgent: new https.Agent({ keepAlive: true }),