server.maxConnections
- 类型:<integer>
当连接数达到 server.maxConnections 阈值时:
【When the number of connections reaches the server.maxConnections threshold:】
- 如果进程未以集群模式运行,Node.js 将关闭连接。
- 如果该进程以集群模式运行,Node.js 默认会将连接路由到另一个工作进程。要改为关闭连接,请将 [
server.dropMaxConnection] 设置为true。
一旦将套接字使用 child_process.fork() 发送给子进程后,不建议使用此选项。
【It is not recommended to use this option once a socket has been sent to a child
with child_process.fork().】