how to set timer?
supergui
nginx-forum at nginx.us
Tue Jul 21 10:25:04 MSD 2009
//////////////////////////////////////////////////////////////////////////////////////////////////////////
gdrive_timer_wev.handler=test_timer;
ngx_add_timer(&gdrive_timer_wev, 5);
static
void test_timer(ngx_event_t *wev)
{
ngx_log_error(NGX_LOG_DEBUG, wev->log, 0, "timer out");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
i want to set a timer in nginx's main loop, but why this make not any effect?
how to set the timer?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4265,4265#msg-4265
More information about the nginx
mailing list