From a62b4b0b7692ef9abd7085848de240623924b459 Mon Sep 17 00:00:00 2001 From: yusheng Date: Fri, 30 Jan 2026 16:28:11 +0800 Subject: [PATCH] doc: update `server.dropMaxConnection` link --- 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 0bc2adbd455b8b..1bc1faccb90164 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -680,7 +680,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()`][]. @@ -2013,6 +2013,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