app-layer: optimize inspection id tracking

Increase the inspect id for a completely inspected tx in any case.
This avoids re-evaluating transactions.

Reported-by: Ilya Bakhtin
pull/4434/head
Victor Julien 6 years ago
parent f5b33a070a
commit 618ad0d92f

@ -795,9 +795,9 @@ void AppLayerParserSetTransactionInspectId(const Flow *f, AppLayerParserState *p
tx, idx, flags & STREAM_TOSERVER ? "toserver" : "toclient", detect_flags); tx, idx, flags & STREAM_TOSERVER ? "toserver" : "toclient", detect_flags);
} }
} }
idx++;
if (!ires.has_next) if (!ires.has_next)
break; break;
idx++;
} }
pstate->inspect_id[direction] = idx; pstate->inspect_id[direction] = idx;
SCLogDebug("inspect_id now %"PRIu64, pstate->inspect_id[direction]); SCLogDebug("inspect_id now %"PRIu64, pstate->inspect_id[direction]);

Loading…
Cancel
Save