Nginx logging phase

Vikas Kumar hershil at
Wed Oct 28 08:44:40 UTC 2020

I'm writing an Nginx plugin (using Openresty Lua) which increments a
counter when a request is received (in ACCESS phase) and decrements the
counter when request is processed (in LOG phase) in order to keep track of
in-flight requests.

I've seen some cases where the counter increments but does not decrement
and reaches a very high value, but can't reproduce. The core of my logic
depends on the accurate value of the in-flight requests counter.

I wanted to ask if there are any cases where, for a request, ACCESS phase
is called and LOG phase is not called.

I can paste the relevant code if required.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list