server.maxRequestsPerSocket


  • 类型:<number> 每个套接字的请求数。默认: 0(无限制)

在关闭保持活动连接之前,套接字可以处理的最大请求数。

【The maximum number of requests socket can handle before closing keep alive connection.】

0 的值将禁用此限制。

【A value of 0 will disable the limit.】

当达到限制时,它会将 Connection 头的值设置为 close,但实际上不会关闭连接,在达到限制后发送的后续请求将会得到 503 Service Unavailable 作为响应。

【When the limit is reached it will set the Connection header value to close, but will not actually close the connection, subsequent requests sent after the limit is reached will get 503 Service Unavailable as a response.】