MINOR: spoe: Don't close connection in sync mode on processing timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Nov 2020 13:31:39 +0000 (14:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 15:52:44 +0000 (16:52 +0100)
commitd1b9abb7963c265617b3f7e923c316176605736b
tree2eadb64c71cb52daeea9e7cc0edb26bf18cabf34
parent8fed2b58cb2f225f3670fa15145647fd11090d54
MINOR: spoe: Don't close connection in sync mode on processing timeout

In sync mode, if an applet receives a ack while the processing delay has already
expired, there is not frame waiting for this ack. But there is no reason to
close the connection in this case. The ack may be ignored and the connection may
be reused to process another frame. The only reason to trigger an error and
close the connection is when the wrong ack is received while there is still a
frame waiting for its ack. In sync mode, this should never happen.

This patch may be backported in all versions supporting the SPOE.

(cherry picked from commit c7ba91039a7b0703971efd791ca2ca609afedb96)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d9eb3c3de3211478b512ee7f8e548bb78211adf5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3217a352a6d99b3b23b2f552aa7505a64389ac1e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/flt_spoe.c