Welcome! Log In Create A New Profile

Advanced

[module] Tracking connection status from accepted to closed

Hung Nguyen
October 28, 2017 06:24AM
Hello,

I am writing a HTTP core module that track http connection to know when it’s accepted and closed within nginx.

What I am doing is register my module at PREACCESS_PHASE, and then adding a clean up callback to know when the connection closed (from nginx side).
The problem is from my module i see nginx’s calling it twice, and calling my ngx_http_cleanup_t implement twice also.

My question is: If I want to write my module to do exactly 2 things:

1. Know when connection accepted by nginx
2. and know when connection closed by nginx

How should i implement my module?

Thanks,


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[module] Tracking connection status from accepted to closed

Hung Nguyen 422 October 28, 2017 06:24AM

Re: [module] Tracking connection status from accepted to closed

Roman Arutyunyan 137 October 30, 2017 07:50AM

Re: [module] Tracking connection status from accepted to closed

Roman Arutyunyan 217 October 30, 2017 07:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready