detect: clean app-layer txs when we pass the flow

Ticket: 8619

Do not wait to run inspection on the other side of transactions
as we do not run any tx detection on passing flows.
Avoids accumulating txs
pull/15542/head
Philippe Antoine 2 months ago committed by Victor Julien
parent f8945e7a1a
commit 2eede11195

@ -999,7 +999,8 @@ void AppLayerParserTransactionsCleanup(Flow *f, const uint8_t pkt_dir)
goto next;
}
if (has_tx_detect_flags) {
// for passing flow, do not skip tx as we will not run detection on the other side
if (has_tx_detect_flags && (f->flags & (FLOW_ACTION_PASS)) == 0) {
if (!IS_DISRUPTED(ts_disrupt_flags) &&
(f->sgh_toserver != NULL || (f->flags & FLOW_SGH_TOSERVER) == 0)) {
if ((txd->flags & (APP_LAYER_TX_INSPECTED_TS | APP_LAYER_TX_SKIP_INSPECT_TS)) ==

Loading…
Cancel
Save