]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Save the "use-service" rule in the stream to init a service applet
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 14:08:48 +0000 (16:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 14:22:24 +0000 (16:22 +0200)
commit568ed6484ad567f83fc4763d6b693eb88f705850
tree16cd631fef12820aacfd5166623673ddd1fd2ebc
parent6f59986e7c01e339aec701321f1d56d6bc831c78
MINOR: applet: Save the "use-service" rule in the stream to init a service applet

When a service is initialized, the "use-service" rule that was executed is
now saved in the stream, using "current_rule" field, instead of saving it
into the applet context. It is safe to do so becaues this field is unused at
this stage. To avoid any issue, it is reset after the service
initialization. Doing so, it is no longer necessary to save it in the applet
context. It was the last usage of the rule pointer in the applet context.

The init functions for TCP and HTTP lua services were updated accordingly.
src/hlua.c
src/stream.c