From 63263e50edd60d4c53dca227218c6313a25269a8 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 10 Apr 2019 14:47:18 +0200 Subject: [PATCH] BUG/MINOR: spoe: Be sure to set tv_request when each message fragment is encoded When a message or a fragment is encoded, the date the frame processing starts must be set if it is undefined. The test on tv_request field was wrong. This patch must be backported to 1.9. --- src/flt_spoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 703d6ba96..1b517793e 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -2674,8 +2674,8 @@ spoe_process_messages(struct stream *s, struct spoe_context *ctx, } if (ctx->state == SPOE_CTX_ST_ENCODING_MSGS) { - if (!tv_iszero(&ctx->stats.tv_request)) - ctx->stats.tv_request = now; + if (tv_iszero(&ctx->stats.tv_request)) + ctx->stats.tv_request = now; if (!spoe_acquire_buffer(&ctx->buffer, &ctx->buffer_wait)) goto out; ret = spoe_encode_messages(s, ctx, messages, dir, type); -- 2.47.3