深入分析Http Status 408

阅读更多
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状态码时,可能触发客户端瞬时重连,如下:

深入分析Http Status 408_第1张图片
4、需要解决:
1> 排除是客户端本身发出请求问题还是服务器端接收请求问题?
  • 深入分析Http Status 408_第2张图片
  • 大小: 132.5 KB
  • 查看图片附件

你可能感兴趣的:(HttpStatus408,TCP,RequestTimeout)