MEDIUM: spoe/rules: Process "send-spoe-group" action
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Sep 2017 08:20:13 +0000 (10:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 10:36:12 +0000 (11:36 +0100)
commit344c4ab6a9b3b39aa3593ac46bd746d13ee99b9b
tree2503dde8085232149724d6e8ab3533fbd6bc79f8
parent58d036858887a290f88bb3400e7cbf80f1ca66e2
MEDIUM: spoe/rules: Process "send-spoe-group" action

The messages processing is done using existing functions. So here, the main task
is to find the SPOE engine to use. To do so, we loop on all filter instances
attached to the stream. For each, we check if it is a SPOE filter and, if yes,
if its name is the one used to declare the "send-spoe-group" action.

We also take care to return an error if the action processing is interrupted by
HAProxy (because of a timeout or an error at the HAProxy level). This is done by
checking if the flag ACT_FLAG_FINAL is set.

The function spoe_send_group is the action_ptr callback ot
doc/SPOE.txt
include/types/spoe.h
src/flt_spoe.c