endpointOptions.maxConnectionsPerHost
- 类型:<number>
- 默认:
0(无限)
指定每个远程 IP 地址(忽略端口)允许的最大并发会话数。当达到限制时,来自同一 IP 的新连接将被 CONNECTION_REFUSED 拒绝。值为 0 表示禁用此限制。最大值为 65535。
🌐 Specifies the maximum number of concurrent sessions allowed per remote IP
address (ignoring port). When the limit is reached, new connections from the
same IP are refused with CONNECTION_REFUSED. A value of 0 disables the
limit. The maximum value is 65535.
这个限制也可以在构造后通过 endpoint.maxConnectionsPerHost 动态更改。
🌐 This limit can also be changed dynamically after construction via
endpoint.maxConnectionsPerHost.