parser_state_store->id_flags |= APP_LAYER_TRANSACTION_EOF;
parser_state_store->to_client.flags |= APP_LAYER_PARSER_EOF;
parser_state_store->to_server.flags |= APP_LAYER_PARSER_EOF;
+ /* increase version so we will inspect it one more time
+ * with the EOF flags now set */
+ parser_state_store->version++;
}
}
/* if applicable, continue stateful detection */
int state = DeStateFlowHasState(p->flow, flags, alversion);
- if (state == 1) {
+ if (state == 1 || (flags & STREAM_EOF)) {
DeStateDetectContinueDetection(th_v, de_ctx, det_ctx, p->flow,
flags, alstate, alproto, alversion);
} else if (state == 2) {