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: http://forum.nginx.org/read.php?2,256066,256129#msg-256129