Fixes shutdown procedures with new hash entry states

This commit is contained in:
Simone Mainardi 2019-10-11 15:16:42 +02:00
parent cbfcff9633
commit 453efa749f
4 changed files with 26 additions and 17 deletions

View file

@ -250,13 +250,18 @@ u_int GenericHash::purgeIdle(bool force_idle) {
case hash_entry_state_allocated:
/* TCP flows with 3WH not yet completed fall here */
if(force_idle) head->set_hash_entry_state_idle();
break;
case hash_entry_state_flow_notyetdetected:
head->housekeep(now);
if(force_idle) head->set_hash_entry_state_idle();
break;
case hash_entry_state_flow_protocoldetected:
if(force_idle) head->set_hash_entry_state_idle();
break;
case hash_entry_state_idle:
/* Skip as this is handled by periodic activities thread */
break;