Variable value is resetting

malzad nginx-forum at forum.nginx.org
Wed Nov 10 18:12:22 UTC 2021


Hi,

I have a static int variable in a load balancing module and initially set it
to 0. I want to update this variable when there will be any HTTP requests
with certain criteria.  It gets updated but whenever the module receives a
new HTTP request ( or after receiving a few HTTP requests), that int
variable again resets to 0. how can I prevent it from resetting the value?

Thanks in advance.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292794,292794#msg-292794



More information about the nginx mailing list