From 7d3e501f5739eb60b63870b887e834f4bf1d3142 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Sat, 10 Sep 2011 14:21:59 +0530 Subject: [PATCH] shutdown stream reassembly now avoids looking at flows that have already been processed by flow mgr reassembly --- src/flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow.c b/src/flow.c index 2f55a21cc6..16c8e8f3f2 100644 --- a/src/flow.c +++ b/src/flow.c @@ -693,7 +693,7 @@ static int FlowPrune(ThreadVars *tv, FlowQueue *q, struct timeval *ts, int try_c #ifdef FLOW_PRUNE_DEBUG prune_queue_lock++; #endif - FlowRequeue(f, q, &flow_spare_q, 0); + FlowRequeue(f, q, &flow_spare_q, 1); SCMutexUnlock(&f->m); return cnt; } @@ -1404,7 +1404,7 @@ static inline void FlowForceReassemblyForQ(FlowQueue *q) /* get the topmost flow from the QUEUE */ f = q->top; /* looks like we have no flows in this queue */ - if (f == NULL) { + if (f == NULL || f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) { return; }