vozlt / nginx-module-vts

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

bugfix: Add shmtx unlock #249

Closed u5surf closed 1 year ago

u5surf commented 1 year ago

ngx_http_vhost_traffic_status_shm_add_node does not unlock if it returns from line 133 nevertheless it acquires the lock at line 107.

https://github.com/vozlt/nginx-module-vts/blob/0009b3bc668a7d73751c4cd8f8c0a161cba96832/src/ngx_http_vhost_traffic_status_shm.c#L107-L133