]> git.kaiwu.me - haproxy.git/commit
MEDIUM: stream-int: remove dangerous interval checks for stream-int states
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Jun 2019 12:53:22 +0000 (14:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Jun 2019 14:36:19 +0000 (16:36 +0200)
commit7ab22adbf7e48b289c3b793b3c026c70eaa4d2c7
tree4950abeaf85c5d105fa3ab6f3e8cd3c7d3fab2bc
parentbedcd698b341c91afc0c94ce7cd9bcd9e9e8a201
MEDIUM: stream-int: remove dangerous interval checks for stream-int states

The stream interface state checks involving ranges were replaced with
checks on a set of states, already revealing some issues. No issue was
fixed, all was replaced in a one-to-one mapping for easier control. Some
checks involving a strict difference were also replaced with fields to
be clearer. At this stage, the result must be strictly equivalent. A few
tests were also turned to their bit-field equivalent for better readability
or in preparation for upcoming changes.

The test performed in the SPOE filter was swapped so that the closed and
error states are evicted first and that the established vs conn state is
tested second.
include/proto/stream_interface.h
src/flt_spoe.c
src/stream.c
src/stream_interface.c