Open fbwfbi opened 3 months ago
ngx_http_reqstat_module 模块无法统计 xquic 入向流量 bytes_in 大小,即 bytes_in 值始终为 0
通过在 location 块中配置 req_status_show req_server_status; 指定,即可访问 location 对应的路径来获取 http 相关统计信息,但是每个连接 bytes_in 入向流量的值始终为 0
req_status_show req_server_status;
修复该问题,bytes_in 能准确计数
location /req_status { req_status_show req_server_status; }
看了一下代码,bytes_in 对应的是 r->connection->received 的值,而 xquic 模块中有对 c->sent 的计数,而无 c->received 的计数
Ⅰ. Issue Description
ngx_http_reqstat_module 模块无法统计 xquic 入向流量 bytes_in 大小,即 bytes_in 值始终为 0
Ⅱ. Describe what happened
通过在 location 块中配置
req_status_show req_server_status;
指定,即可访问 location 对应的路径来获取 http 相关统计信息,但是每个连接 bytes_in 入向流量的值始终为 0Ⅲ. Describe what you expected to happen
修复该问题,bytes_in 能准确计数
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
看了一下代码,bytes_in 对应的是 r->connection->received 的值,而 xquic 模块中有对 c->sent 的计数,而无 c->received 的计数
Ⅵ. Environment: