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.
This commit is contained in:
Christopher Faulet 2018-02-01 08:45:45 +01:00 committed by Willy Tarreau
parent d5216d474d
commit 9cdca976d3

View File

@ -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);
}