tcp reuse: don't double 'reuse'

If the flow engine already reused a flow then the stream engine
won't have to do the same.
pull/1342/head
Victor Julien 11 years ago
parent 6ad53627de
commit d78be75b9f

@ -4999,10 +4999,12 @@ TmEcode StreamTcp (ThreadVars *tv, Packet *p, void *data, PacketQueue *pq, Packe
if (p->flow == NULL)
return ret;
/* after that, check for 'new' reuse */
TcpSessionReuseHandle(p);
if (p->flow == NULL)
return ret;
if (!(p->flowflags & FLOW_PKT_TOSERVER_FIRST)) {
/* after that, check for 'new' reuse */
TcpSessionReuseHandle(p);
if (p->flow == NULL)
return ret;
}
}
}
AppLayerProfilingReset(stt->ra_ctx->app_tctx);

Loading…
Cancel
Save