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:26:10 +0000 (16:26 +0100)
commitc7ba91039a7b0703971efd791ca2ca609afedb96
tree612e2f88bbe50e0dd098414d90d4a7db10e7691c
parentcf181c76e341f2d49f6cae0ca8200158058073f1
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.
src/flt_spoe.c