- delete a connection using connection_state_remove

Hi everyone,

In case I some test that occurs in http_request event.

If the test returns FALSE, than I wish to delete this session\connection (I wish to save CPU time and prevent further processing of this packet or future session related packets).

What would be the more appropriate way of accomplishing that ?

Can I just call the connection_state_remove with my current c connection from my test function ?

Or should I just “delete c;” ?

Thanks

B