mirror of https://github.com/OISF/suricata
threading: fix shutdown of IPS autofp modes
For IPS modes with a verdict thread in autofp there was an issue with the verdict thread not shutting down, leading to a long shutdown time until an error condition was reached. The problem was that when the packet threads, of which the verdict thread is one, were told to enter their flow timeout loop the verdict thread got stuck as it immediately progressed to THV_RUNNING_DONE instead of the expected THV_FLOW_LOOP. This patch updates the shutdown logic to only apply the flow timeout logic to the relevant threads, and skip the verdict thread(s). Add TM_FLAG_VERDICT_TM to indicate a thread has a verdict module to more explicitly shut it down. Fixes:pull/13538/head12f8f03532("threads: fix autofp shutdown race condition") Bug: #7681. (cherry picked from commitbdac028fc7)
parent
d8d44648eb
commit
3528625f04
Loading…
Reference in New Issue