I need to run a server handler in single thread mode.
I see that when a request is sent to that handler, and the previous execution is not finished yet, the second request is paused until the first one is done.
How can I count how many requests are waiting to be executed?
A counter inside the handler is not useful, since the handled is not called until the previous one is running.
I see that when a request is sent to that handler, and the previous execution is not finished yet, the second request is paused until the first one is done.
How can I count how many requests are waiting to be executed?
A counter inside the handler is not useful, since the handled is not called until the previous one is running.