Welcome! Log In Create A New Profile

Advanced

Re: Accept connections and close connection hooks in custom module

August 20, 2012 06:25AM
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.
SubjectAuthorPosted

Accept connections and close connection hooks in custom module

ConnorMcLaudJuly 30, 2012 01:06PM

Re: Accept connections and close connection hooks in custom module

ConnorMcLaudAugust 20, 2012 06:25AM

Re: Accept connections and close connection hooks in custom module

Maxim DouninAugust 21, 2012 08:32AM

Re: Accept connections and close connection hooks in custom module

ConnorMcLaudAugust 21, 2012 10:46AM

Re: Accept connections and close connection hooks in custom module

Maxim DouninSeptember 01, 2012 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 2 on November 23, 2014
Record Number of Guests: 377 on November 23, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready