Accept connections and close connection hooks in custom module
ConnorMcLaud
nginx-forum at nginx.us
Mon Aug 20 10:25:09 UTC 2012
I think I've finally understood. There is global structure ngx_event_actions
with add_conn/del_conn handlers which supposed to do what I want. There is
only one issue (probably a bug) with add_conn handler. In version 1.2.2 with
epoll usage handler add_conn never called. You should use add handler
instead and check incoming parameters (event = NGX_READ_EVENT, flags =
NGX_CLEAR_REQUEST). Hope it helps someone.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229100,229921#msg-229921
More information about the nginx
mailing list