<div dir="ltr">Could anyone help me out with the problem here? <div><br></div><div><div style="line-height:19px"><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)">
<div style="line-height:19px"><div><span style="color:rgb(78,201,176)">ngx_module_t</span> ngx_http_slow_module = {</div><div> NGX_MODULE_V1,</div><div> &ngx_http_slow_module_ctx, <span style="color:rgb(106,153,85)">/* module context */</span></div><div> ngx_http_slow_commands, <span style="color:rgb(106,153,85)">/* module directives */</span></div><div> NGX_HTTP_MODULE, <span style="color:rgb(106,153,85)">/* module type */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* init master */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* init module */</span></div><div> ngx_http_slow_init_worker, <span style="color:rgb(106,153,85)">/* init process */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* init thread */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* exit thread */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* exit process */</span></div><div> <span style="color:rgb(86,156,214)">NULL</span>, <span style="color:rgb(106,153,85)">/* exit master */</span></div><div> NGX_MODULE_V1_PADDING</div><div>};</div></div>
</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)">[...]</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"><span style="color:rgb(86,156,214)">void</span> <span style="color:rgb(220,220,170)">ngx_http_slow_handler</span>(<span style="color:rgb(78,201,176)">ngx_event_t</span> *ev){</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"><span style="color:rgb(220,220,170)">ngx_log_error</span>(NGX_LOG_ERR, ev-><span style="color:rgb(156,220,254)">log</span>, <span style="color:rgb(181,206,168)">0</span>, <span style="color:rgb(206,145,120)">"run timer"</span>);</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)">}</div><br><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"><span style="color:rgb(86,156,214)">static</span> <span style="color:rgb(78,201,176)">ngx_event_t</span> ngx_http_slow_timer;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"><span style="color:rgb(86,156,214)">static</span> <span style="color:rgb(78,201,176)">ngx_connection_t</span> dumb;</div><br><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"><span style="color:rgb(86,156,214)">static</span> <span style="color:rgb(78,201,176)">ngx_int_t</span> <span style="color:rgb(220,220,170)">ngx_http_slow_init_worker</span>(<span style="color:rgb(78,201,176)">ngx_cycle_t</span> *cycle){ </div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(197,134,192)">if</span> (ngx_process != NGX_PROCESS_WORKER){</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(197,134,192)">return</span> NGX_OK;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> }</div><br><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(220,220,170)">ngx_log_error</span>(NGX_LOG_ERR, ngx_cycle-><span style="color:rgb(156,220,254)">log</span>, <span style="color:rgb(181,206,168)">0</span>, <span style="color:rgb(206,145,120)">"start timer"</span>);</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(220,220,170)">memset</span>(&ngx_http_slow_timer, <span style="color:rgb(181,206,168)">0</span>, <span style="color:rgb(86,156,214)">sizeof</span>(ngx_http_slow_timer));</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> ngx_http_slow_timer.<span style="color:rgb(156,220,254)">log</span> = ngx_cycle-><span style="color:rgb(156,220,254)">log</span>;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> ngx_http_slow_timer.<span style="color:rgb(156,220,254)">handler</span> = ngx_http_slow_handler;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> ngx_http_slow_timer.<span style="color:rgb(156,220,254)">data</span> = &dumb;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> dumb.<span style="color:rgb(156,220,254)">fd</span> = (<span style="color:rgb(78,201,176)">ngx_socket_t</span>) -<span style="color:rgb(181,206,168)">1</span>;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(220,220,170)">ngx_add_timer</span>(&ngx_http_slow_timer, (<span style="color:rgb(78,201,176)">ngx_msec_t</span>)NGX_HTTP_SLOW_INTERVAL);</div><br><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)"> <span style="color:rgb(197,134,192)">return</span> NGX_OK;</div><div style="color:rgb(212,212,212);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;background-color:rgb(30,30,30)">}</div><br><br>"Start timer" is output in the logs, but not "run timer". And I can't see why.</div></div><div style="line-height:19px"><br></div><div style="line-height:19px">Regards,<br>Mathew</div></div>