Hello!
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
http://nginx.org/
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel