It is better to let spoe_stop_processing release this buffer because, in
.check_timeouts callback, we lack information to know if it should be release or
not. For instance, if the processing timeout is reached while the SPOE applet
receives the reply, it is preferable to ignore the timeout and process the
result.
This patch should be backported in 1.8.
{
struct spoe_context *ctx = filter->ctx;
- if (tick_is_expired(ctx->process_exp, now_ms)) {
+ if (tick_is_expired(ctx->process_exp, now_ms))
s->pending_events |= TASK_WOKEN_MSG;
- spoe_release_buffer(&ctx->buffer, &ctx->buffer_wait);
- }
}
/* Called when we are ready to filter data on a channel */