<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 8, 2022 at 9:21 PM Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Jan 08, 2022 at 08:53:44PM +0000, James Read wrote:<br>
> > On Fri, Jan 07, 2022 at 01:36:04PM +0000, James Read wrote:<br>
<br>
Hi there,<br>
<br>
> > > Does anybody know what timeout is used in Nginx call to<br>
> > > epoll_wait()?<br>
<br>
> which of the many source files should I look in to get the answer?<br>
<br>
<a href="http://nginx.org/en/download.html" rel="noreferrer" target="_blank">http://nginx.org/en/download.html</a><br>
<br>
$ grep -rl epoll_wait nginx-1.21.5<br>
nginx-1.21.5/src/http/ngx_http_upstream.c<br>
nginx-1.21.5/src/event/modules/ngx_epoll_module.c<br>
<br>
I'd probably start there.<br></blockquote><div><br></div><div>Yeah. Thanks. In line 800 of nginx-1.21.5/src/event/modules/ngx_epoll_module.c it says events = epoll_wait(ep, event_list, (int) nevents, timer); Thus the variable timer is used. Line 123 and 124 seem to give the definition of the function call which supplies the timer variable static ngx_int_t ngx_epoll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,</div>    ngx_uint_t flags);</div><div class="gmail_quote"><br></div><div class="gmail_quote">So then I did:</div><div class="gmail_quote"><br></div><div class="gmail_quote">grep -rl ngx_epoll_process_events nginx-1.21.5</div><div class="gmail_quote"><br></div><div class="gmail_quote">and got:</div><div class="gmail_quote"><br></div><div class="gmail_quote">nginx-1.21.5/src/event/modules/ngx_epoll_module.c</div><div class="gmail_quote"><br></div><div class="gmail_quote">I can't find any calls to that function in that file. Only the definition of the function itself. So I still have no idea how the timer variable is calculated.</div><div class="gmail_quote"><br></div><div class="gmail_quote">thanks,</div><div class="gmail_quote">James Read </div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Good luck with it,<br>
<br>
        f<br>
-- <br>
Francis Daly        <a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div></div>