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 12 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) if (p->flow == NULL)
return ret; return ret;
/* after that, check for 'new' reuse */ if (!(p->flowflags & FLOW_PKT_TOSERVER_FIRST)) {
TcpSessionReuseHandle(p); /* after that, check for 'new' reuse */
if (p->flow == NULL) TcpSessionReuseHandle(p);
return ret; if (p->flow == NULL)
return ret;
}
} }
} }
AppLayerProfilingReset(stt->ra_ctx->app_tctx); AppLayerProfilingReset(stt->ra_ctx->app_tctx);

Loading…
Cancel
Save