Skip to content

Commit 4998f53

Browse files
samuel871211aduh95
authored andcommitted
doc: update server.dropMaxConnection link
PR-URL: #61584 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent e559ef6 commit 4998f53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/net.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ When the number of connections reaches the `server.maxConnections` threshold:
680680

681681
1. If the process is not running in cluster mode, Node.js will close the connection.
682682

683-
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`.
683+
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`.
684684

685685
It is not recommended to use this option once a socket has been sent to a child
686686
with [`child_process.fork()`][].
@@ -2056,6 +2056,7 @@ net.isIPv6('fhqwhgads'); // returns false
20562056
[`new net.Socket(options)`]: #new-netsocketoptions
20572057
[`readable.setEncoding()`]: stream.md#readablesetencodingencoding
20582058
[`server.close()`]: #serverclosecallback
2059+
[`server.dropMaxConnection`]: #serverdropmaxconnection
20592060
[`server.listen()`]: #serverlisten
20602061
[`server.listen(handle)`]: #serverlistenhandle-backlog-callback
20612062
[`server.listen(options)`]: #serverlistenoptions-callback

0 commit comments

Comments
 (0)