Standalone: independently destroy the connection and request pools

Add independent modsecFinishConnection API that allows you to independently
destroy the connection and request pools. This is to facilitate reuse of a
connection for multiple requests.
This commit is contained in:
David Andrews
2014-03-03 14:17:00 -08:00
committed by Felipe Zimmerle
parent 27dd513ab6
commit dda91f1689
4 changed files with 19 additions and 1 deletions

View File

@@ -1356,6 +1356,10 @@ ngx_http_modsecurity_cleanup(void *data)
if (ctx->req != NULL) {
(void) modsecFinishRequest(ctx->req);
}
if (ctx->connection != NULL) {
(void) modsecFinishConnection(ctx->connection);
}
}
static char *