flow-worker: prune frames and stream for pseudo packets as well

pull/8389/head
Victor Julien 3 years ago
parent af211cbfad
commit b79c14f710

@ -399,6 +399,13 @@ static inline void FlowWorkerStreamTCPUpdate(ThreadVars *tv, FlowWorkerThreadDat
OutputLoggerLog(tv, x, fw->output_thread);
FramesPrune(x->flow, x);
/* Release tcp segments. Done here after alerting can use them. */
FLOWWORKER_PROFILING_START(x, PROFILE_FLOWWORKER_TCPPRUNE);
StreamTcpPruneSession(
x->flow, x->flowflags & FLOW_PKT_TOSERVER ? STREAM_TOSERVER : STREAM_TOCLIENT);
FLOWWORKER_PROFILING_END(x, PROFILE_FLOWWORKER_TCPPRUNE);
if (timeout) {
PacketPoolReturnPacket(x);
} else {

Loading…
Cancel
Save