vozlt / nginx-module-vts

Nginx virtual host traffic status module
BSD 2-Clause "Simplified" License
3.17k stars 456 forks source link

ngx_http_vhost_traffic_status_display_get_size not lock #248

Closed akf00000 closed 1 year ago

akf00000 commented 1 year ago

ngx_http_vhost_traffic_status_display_get_size not lock the share memory。if a new shm node being added,in the same time, another process call the ngx_http_vhost_traffic_status_display_get_size , may get wrong node,that have not be initial full.

vozlt commented 1 year ago

@akf00000 Thanks reporting. I fixed it.

Commit: https://github.com/vozlt/nginx-module-vts/commit/1277c0121bc19603cf7554d6316fa3303feba6f3