Skip to content

Commit ade52d4

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 f8be03c commit ade52d4

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
@@ -676,7 +676,7 @@ When the number of connections reaches the `server.maxConnections` threshold:
676676

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

679-
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`.
679+
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`.
680680

681681
It is not recommended to use this option once a socket has been sent to a child
682682
with [`child_process.fork()`][].
@@ -2009,6 +2009,7 @@ net.isIPv6('fhqwhgads'); // returns false
20092009
[`new net.Socket(options)`]: #new-netsocketoptions
20102010
[`readable.setEncoding()`]: stream.md#readablesetencodingencoding
20112011
[`server.close()`]: #serverclosecallback
2012+
[`server.dropMaxConnection`]: #serverdropmaxconnection
20122013
[`server.listen()`]: #serverlisten
20132014
[`server.listen(handle)`]: #serverlistenhandle-backlog-callback
20142015
[`server.listen(options)`]: #serverlistenoptions-callback

0 commit comments

Comments
 (0)