nginx timer in log module

Maxim Dounin mdounin at
Sat Sep 17 07:06:20 UTC 2016


On Sat, Sep 17, 2016 at 02:42:25PM +0800, 洪志道 wrote:

> Thank you for your reply, I get it now.
> In other case such as I showed above, it seems we needn't do like the
> following ?
>  if (ev->timer_set) {
>       ngx_del_timer(ev);
> }

Yes, as long as the code is in the timer handler it is not needed.  
Timers are called only once and they are always deleted before a 
timer handler is called.

Maxim Dounin

More information about the nginx-devel mailing list