Hello!
On Thu, Oct 29, 2020 at 06:23:59PM +0530, Vikas Kumar wrote:
> Do you have a recommendation on what handlers are suitable for my use case?
In nginx itself, proper approach to count in-flight request would
be:
1. Increment the counter only if no module's cleanup handler is installed
Do you have a recommendation on what handlers are suitable for my use case?
Thanks.
On Wed, Oct 28, 2020 at 6:59 PM Maxim Dounin wrote:
> Hello!
>
> On Wed, Oct 28, 2020 at 02:14:40PM +0530, Vikas Kumar wrote:
>
> > I'm writing an Nginx plugin (using Openresty Lua) which increments a
> > counte
Hello!
On Wed, Oct 28, 2020 at 02:14:40PM +0530, Vikas Kumar wrote:
> 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-fl
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