From 9cdca976d325cfc69a085b7d9e53ee1789a18a5b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 1 Feb 2018 08:45:45 +0100 Subject: [PATCH] BUG/MEDIUM: spoe: Allow producer to read and to forward shutdown on request side This is mandatory to correctly set right timeout on the stream. Else the client timeout is never set. So only SPOE processing timeout will be evaluated. If it is not defined (ie infinity), the stream can be blocked for a while, waiting the SPOA reply. Of course, this is not a good idea to let the SPOE processing timeout undefined, but it can happen. This patch must be backported in 1.8. --- src/flt_spoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 5b6e25370b..15317d1b87 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -3088,7 +3088,7 @@ spoe_chn_pre_analyze(struct stream *s, struct filter *filter, } out: - if (!ret) { + if (!ret && (chn->flags & CF_ISRESP)) { channel_dont_read(chn); channel_dont_close(chn); } -- 2.47.3