huntkalio opened a new issue, #7445: URL: https://github.com/apache/apisix/issues/7445
### Current Behavior if nginx return 499 because client closed the connection before the server answered the request,lua-var-nginx-module upstream_response_time will return 0,but ngx.var.upstream_response_time return right value. https://github.com/api7/lua-var-nginx-module/issues/10 And ``` upstream_latency = ctx.var.upstream_response_time * 1000 apisix_latency = apisix_latency - upstream_latency ``` would let apisix_latency will equal request_time ### Expected Behavior apisix_latency don't equal request_time ### Error Logs _No response_ ### Steps to Reproduce nginx return 499 because client closed the connection before the server answered the request ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
