why delta only include the execution time of ngx_process_events not ngx_event_process_posted

Zhang Chao zchao1995 at gmail.com
Sun Oct 29 07:20:48 UTC 2017


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171029/4cd647f6/attachment.html>


More information about the nginx mailing list