server.requestTimeout


设置从客户端接收整个请求的超时值(以毫秒为单位)。

¥Sets the timeout value in milliseconds for receiving the entire request from the client.

如果超时到期,则服务器以状态 408 响应而不将请求转发给请求监听器,然后关闭连接。

¥If the timeout expires, the server responds with status 408 without forwarding the request to the request listener and then closes the connection.

必须将其设置为非零值(例如 120 秒)以防止潜在的拒绝服务攻击,以防在部署服务器之前没有反向代理的情况下。

¥It must be set to a non-zero value (e.g. 120 seconds) to protect against potential Denial-of-Service attacks in case the server is deployed without a reverse proxy in front.