#7077·server

除非响应是流式传输,否则 tritonserver HTTPServer 无法检测 EOF/连接关闭

作者: pathorn创建于 2024年4月5日更新于 2026年9月21日
标签Enhancement

Description When a user performs a long-running inference request via HTTPServer, they may lose connection or intentionally abort the connection (ctrl-c from curl). Ideally, the HTTP server will detect this and flag the request as cancelled (such as setting Request::is_cancelled_).

However, at least on Linux, we found that the HTTPServer does not call triton::server::HTTPAPIServer::InferRequestClass::RequestFiniHook until something (such as a streaming response) attempts to write to the connection.

内容来源: triton-inference-server/server