I think most of time delta is larger than zero, and i guess that the
intention of the if statement for checking delta is non-zero is for
ignoring some extreme
case that the ngx_process_events handler returns so quickly that the
millisecond precision is not enough to display the calling time(less than
1ms maybe).
In this case, calling the ngx_event_expire_timers is unnecessary.
Also , even in an extreme case that delta is zero for current cycle and
events are posted to queue, calling for the ngx_event_expire_timers will be
executed next cycle, presumably.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx