Add/del timer?


Is there a possibility to setup a timer to expire after a timeout that
calls a callback in an http nginx module ?

I saw some timer related functions in ngx_event_timer.c but I’m not sure
how to use it…

Is the following (untested) code right?

static ngx_event_t ngx_timer;

ngx_timer.handler = ;
ngx_timer.log = r->log; = ;

ngx_add_timer(&ngx_timer, <timeout>);


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs