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:36:23 +0000 (16:36 +0100)
commitd9eb3c3de3211478b512ee7f8e548bb78211adf5
tree6844a896afe96bd9e455e944a88d3eed67df872b
parentabe894d2c91da5f57ae7704eba59c41b409fc1a0
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>
src/flt_spoe.c