server.headersTimeout
- <number> 默认值:
server.requestTimeout或60000中的最小值。
限制解析器等待接收完整 HTTP 头的时间。
🌐 Limit the amount of time the parser will wait to receive the complete HTTP headers.
如果超时到期,服务器会以状态码 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.