{
SCEnter();
AppLayerDestroyCtxThread(ra_ctx->app_tctx);
+#ifdef DEBUG
+ SCLogDebug("reassembly fast path stats: fp1 %"PRIu64" fp2 %"PRIu64" sp %"PRIu64,
+ ra_ctx->fp1, ra_ctx->fp2, ra_ctx->sp);
+#endif
SCFree(ra_ctx);
SCReturn;
}
AppLayerProfilingStore(ra_ctx->app_tctx, p);
rd->data_sent += seg->payload_len;
rd->ra_base_seq += seg->payload_len;
-
+#ifdef DEBUG
+ ra_ctx->fp1++;
+#endif
/* if after the first data chunk we have no alproto yet,
* there is no point in continueing here. */
if (!StreamTcpIsSetStreamFlagAppProtoDetectionCompleted(stream)) {
AppLayerProfilingStore(ra_ctx->app_tctx, p);
rd->data_sent += seg->payload_len;
rd->ra_base_seq += seg->payload_len;
-
+#ifdef DEBUG
+ ra_ctx->fp2++;
+#endif
/* if after the first data chunk we have no alproto yet,
* there is no point in continueing here. */
if (!StreamTcpIsSetStreamFlagAppProtoDetectionCompleted(stream)) {
}
return 1;
}
-
+#ifdef DEBUG
+ ra_ctx->sp++;
+#endif
uint16_t payload_offset = 0;
uint16_t payload_len = 0;
uint16_t counter_htp_memuse;
/* number of allocation failed due to memcap when handling HTTP protocol */
uint16_t counter_htp_memcap;
+#ifdef DEBUG
+ uint64_t fp1;
+ uint64_t fp2;
+ uint64_t sp;
+#endif
} TcpReassemblyThreadCtx;
#define OS_POLICY_DEFAULT OS_POLICY_BSD