Re: Adding timer in nginx.c main

2015-01-15 Thread Nikhita
Hi Maxim, I shifted the timer to ngx_epoll_module.c and called it from ngx_epoll_init. My handler is still not getting invoked... What would be the right way of adding a timer ? Writing a new module all together ? Posted at Nginx Forum:

Adding timer in nginx.c main

2015-01-12 Thread Nikhita
Hi, I am adding a timer in nginx's main loop. if (counter == -1) { ngx_log_error(NGX_LOG_EMERG, cycle-log, 0, counter is null adding imer); /* Registring Timer */ ngx_ipc_event.data = dumb; ngx_ipc_event.handler = ngx_ipc_event_handler;