]> git.kaiwu.me - haproxy.git/commit
MINOR: stream: Save the last filter evaluated interrupting the processing
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 10:30:46 +0000 (11:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 15:39:04 +0000 (16:39 +0100)
commit53de6da1c097549615df59966ec984b6a50b15d0
treee865352539c1fa4aaa549aa2016a844e72e4bff9
parentc9fa78e747895e73e5be810b9af555c4028af3cf
MINOR: stream: Save the last filter evaluated interrupting the processing

It is very similar to the last evaluated rule. When a filter returns an
error that interrupts the processing, it is saved in the stream, in the
last_entity field, with the type 2. The pointer on filter config is
saved. This pointer never changes during runtime and is part of the proxy's
structure. It is an element of the filter_configs list in the proxy
structure.

"last_entity" sample fetch was update accordingly. The filter identifier is
returned, if defined. Otherwise the save pointer.
include/haproxy/stream-t.h
src/filters.c
src/stream.c