endpointOptions.maxConnectionsTotal


  • 类型:<number>
  • 默认:0(无限)

指定所有远程地址的最大并发会话总数。当达到限制时,新的连接会被拒绝,并显示 CONNECTION_REFUSED。值为 0 表示禁用该限制。最大值为 65535

🌐 Specifies the maximum total number of concurrent sessions across all remote addresses. When the limit is reached, new connections are refused with CONNECTION_REFUSED. A value of 0 disables the limit. The maximum value is 65535.

这个限制也可以在构造后通过 endpoint.maxConnectionsTotal 动态更改。

🌐 This limit can also be changed dynamically after construction via endpoint.maxConnectionsTotal.