Welcome! Log In Create A New Profile

Advanced

how to set timer?

July 21, 2009 02:25AM
//////////////////////////////////////////////////////////////////////////////////////////////////////////
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?
Subject Author Posted

how to set timer?

supergui July 21, 2009 02:25AM

Re: how to set timer?

supergui July 22, 2009 04:21AM

Re: how to set timer?

Brice Figureau July 22, 2009 03:21PM

Re: how to set timer?

vickyma June 16, 2014 09:43PM

Re: how to set timer?

supergui July 22, 2009 04:22AM

Re: how to set timer?

prkumar June 19, 2014 01:37AM

Re: how to set timer?

supergui July 24, 2009 02:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready