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

@@ -67,6 +67,10 @@ class REQUEST_STORED_CONTEXT : public IHttpStoredContext
{
modsecFinishRequest(m_pRequestRec);
m_pRequestRec = NULL;
}
if(m_pConnRec != NULL)
{
modsecFinishConnection(m_pConnRec);
m_pConnRec = NULL;
}
}