ngx_resolver.c

Maxim Dounin mdounin at mdounin.ru
Wed Jan 11 10:25:51 UTC 2012


Hello!

On Tue, Jan 10, 2012 at 11:20:34PM -0500, J.Q. S. wrote:

> ngx_resolver.c, lines 590-592, shouldn't they read:
> 
> if (!ngx_queue_empty(&r->name_resend_queue)) {
>          ngx_add_timer(r->event, (ngx_msec_t) (r->resend_timeout * 1000));
> }
> 
> i.e. set the timer if the queue isn't empty?

No.  Timer has to be set if it wasn't set previously, i.e. if 
queue is empty.

Maxim Dounin



More information about the nginx-devel mailing list