mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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.
This commit is contained in:
parent
a715ea82ea
commit
63263e50ed
@ -2674,8 +2674,8 @@ spoe_process_messages(struct stream *s, struct spoe_context *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->state == SPOE_CTX_ST_ENCODING_MSGS) {
|
if (ctx->state == SPOE_CTX_ST_ENCODING_MSGS) {
|
||||||
if (!tv_iszero(&ctx->stats.tv_request))
|
if (tv_iszero(&ctx->stats.tv_request))
|
||||||
ctx->stats.tv_request = now;
|
ctx->stats.tv_request = now;
|
||||||
if (!spoe_acquire_buffer(&ctx->buffer, &ctx->buffer_wait))
|
if (!spoe_acquire_buffer(&ctx->buffer, &ctx->buffer_wait))
|
||||||
goto out;
|
goto out;
|
||||||
ret = spoe_encode_messages(s, ctx, messages, dir, type);
|
ret = spoe_encode_messages(s, ctx, messages, dir, type);
|
||||||
|
Loading…
Reference in New Issue
Block a user