客户端超时后,服务器是否继续处理 HTTP 请求?

Does a server continue processing a HTTP request after the client's timeout is over?

如果我为 HTTP 请求设置了 100 毫秒的超时并且服务器需要 5 秒来处理这个请求,它会在 100 毫秒后停止还是服务器完成计算然后在 5 秒后尝试响应?

我搜索了文档,但没有找到任何内容。可能是一个明显的问题或错误的搜索。

标准说:

When a client or server wishes to time-out it SHOULD issue a graceful close on the transport connection. Clients and servers SHOULD both constantly watch for the other side of the transport close, and respond to it as appropriate. If a client or server does not detect the other side's close promptly it could cause unnecessary resource drain on the network

现实生活中应该区分实现HTTP标准的逻辑和实现业务特性的逻辑。 HTTP服务器检测到连接关闭后业务逻辑是否还在处理取决于服务器如何实现,业务逻辑如何实现以及如何相互集成。