【Do家】深入分析Http Status 408 HttpStatus408TCPRequestTimeout
程序员文章站
2022-03-12 09:35:50
...
1、先看规范:specification
408 Request Timeout
The 408 (Request Timeout) status code indicates that the server did
not receive a complete request message within the time that it was
prepared to wait. A server SHOULD send the "close" connection option
(Section 6.1 of [RFC7230]) in the response, since 408 implies that
the server has decided to close the connection rather than continue
waiting. If the client has an outstanding request in transit, the
client MAY repeat that request on a new connection.
2、来自Http Status 408的解读:
408 Request Timeout
The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.
请求超时。客户端没有在服务器预期等待的时间内完成一个请求的发送。客户端可以随时再次提交这一请求而无需进行任何更改。
3、小结:客户端收到408状态码时,可能触发客户端瞬时重连,如下:
4、需要解决:
1> 排除是客户端本身发出请求问题还是服务器端接收请求问题?
【温馨提示】
如果您觉得满意,可以选择支持下,您的支持是我最大的动力:
408 Request Timeout
The 408 (Request Timeout) status code indicates that the server did
not receive a complete request message within the time that it was
prepared to wait. A server SHOULD send the "close" connection option
(Section 6.1 of [RFC7230]) in the response, since 408 implies that
the server has decided to close the connection rather than continue
waiting. If the client has an outstanding request in transit, the
client MAY repeat that request on a new connection.
2、来自Http Status 408的解读:
408 Request Timeout
The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.
请求超时。客户端没有在服务器预期等待的时间内完成一个请求的发送。客户端可以随时再次提交这一请求而无需进行任何更改。
3、小结:客户端收到408状态码时,可能触发客户端瞬时重连,如下:
4、需要解决:
1> 排除是客户端本身发出请求问题还是服务器端接收请求问题?
【温馨提示】
如果您觉得满意,可以选择支持下,您的支持是我最大的动力: