From c17df004ed609cd19e12c87b48cfce60bb016951 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 26 May 2024 08:38:13 +0200 Subject: [PATCH] stream: process ASYNC in packet dir There will generally not be an opposing direction to handle the app update. --- src/stream-tcp-reassemble.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index c310cd0e3d..b9e9e6797d 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -1983,6 +1983,9 @@ int StreamTcpReassembleHandleSegment(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ } } else if (ssn->state == TCP_CLOSED) { dir = UPDATE_DIR_BOTH; + } else if ((ssn->flags & STREAMTCP_FLAG_ASYNC) != 0) { + dir = UPDATE_DIR_PACKET; + SCLogDebug("%" PRIu64 ": ASYNC: UPDATE_DIR_PACKET", p->pcap_cnt); } /* handle ack received */ -- 2.47.2