]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: actions: add new flag ACT_FLAG_FINAL to notify about last call
authorWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 08:06:24 +0000 (10:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 09:04:06 +0000 (11:04 +0200)
commitc1b10d38d7a73909cfab61051f71c28e4aaf7431
tree35b61a905ad887e9113495174c0ff4fc83149ec1
parent658b85b68d4852d69bbbf176eb98bd11dfaeb312
MEDIUM: actions: add new flag ACT_FLAG_FINAL to notify about last call

This new flag indicates to a custom action that it must not yield because
it will not be called anymore. This addresses an issue introduced by commit
bc4c1ac ("MEDIUM: http/tcp: permit to resume http and tcp custom actions"),
which made it possible to yield even after the last call and causes Lua
actions not to be stopped when the session closes. Note that the Lua issue
is not fixed yet at this point. Also only TCP rules were handled, for now
HTTP rules continue to let the action yield since we don't know whether or
not it is a final call.
include/types/action.h
src/proto_tcp.c