custom logic after connection is closed
    Maxim Dounin 
    mdounin at mdounin.ru
       
    Mon Nov 14 12:38:19 UTC 2016
    
    
  
Hello!
On Mon, Nov 14, 2016 at 05:08:33AM -0500, nemster wrote:
> Hi!
> Is it possible to write a plugin that does some additional stuff after a TLS
> (http/1.1, http/2.0) TCP connection. 
> I would want to keep some extra struct for each TLS connection and
> manipulated it with every request, then once the TLS (or TCP) connection
> closes i would want to do some processing and cleanup.
You can install a pool cleanup handler on a connection pool.  Grep 
sources for ngx_pool_cleanup_add() for usage examples.
-- 
Maxim Dounin
http://nginx.org/
    
    
More information about the nginx
mailing list