Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx_http_reqstat_module 模块无法统计 xquic 入向流量 bytes_in 大小 #1947

Open
fbwfbi opened this issue Jun 21, 2024 · 0 comments
Open
Assignees

Comments

@fbwfbi
Copy link

fbwfbi commented Jun 21, 2024

Ⅰ. 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)

  1. 配置统计接口
       location /req_status {
            req_status_show req_server_status;
        }
  1. 通过 curl http://127.0.0.1/req_status 统计接口
  2. 输出的每个连接的信息中, bytes_in 一栏始终为 0

image

Ⅴ. Anything else we need to know?

看了一下代码,bytes_in 对应的是 r->connection->received 的值,而 xquic 模块中有对 c->sent 的计数,而无 c->received 的计数

Ⅵ. Environment:

  • tengine: 3.1.0
  • xquic: 1.7.2
  • Tongsuo: 8.3.2
@lianglli lianglli self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants