From 4889dc4f591679aa4f5db4de107e2713df730c28 Mon Sep 17 00:00:00 2001 From: YuSheng Chen Date: Tue, 3 Feb 2026 16:38:19 +0800 Subject: [PATCH] doc: update `server.dropMaxConnection` link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/61584 Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Ulises Gascón Reviewed-By: Tim Perry --- doc/api/net.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 7c18c1c2bfd..56f6e3226f4 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -676,7 +676,7 @@ When the number of connections reaches the `server.maxConnections` threshold: 1. If the process is not running in cluster mode, Node.js will close the connection. -2. If the process is running in cluster mode, Node.js will, by default, route the connection to another worker process. To close the connection instead, set \[`server.dropMaxConnection`]\[] to `true`. +2. If the process is running in cluster mode, Node.js will, by default, route the connection to another worker process. To close the connection instead, set [`server.dropMaxConnection`][] to `true`. It is not recommended to use this option once a socket has been sent to a child with [`child_process.fork()`][]. @@ -2009,6 +2009,7 @@ net.isIPv6('fhqwhgads'); // returns false [`new net.Socket(options)`]: #new-netsocketoptions [`readable.setEncoding()`]: stream.md#readablesetencodingencoding [`server.close()`]: #serverclosecallback +[`server.dropMaxConnection`]: #serverdropmaxconnection [`server.listen()`]: #serverlisten [`server.listen(handle)`]: #serverlistenhandle-backlog-callback [`server.listen(options)`]: #serverlistenoptions-callback