]> git.kaiwu.me - haproxy.git/commit
MEDIUM: conn-stream/applet: Add a data callback for applets
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Apr 2022 14:34:53 +0000 (16:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:15 +0000 (15:10 +0200)
commit6059ba4acc27e5ea03a3537aab92245f12146a9f
tree9163f7d971c27b8ab61b5457351dea32bfb3bac9
parentef285c18f233a0090b35cbdf735d296d84dc532f
MEDIUM: conn-stream/applet: Add a data callback for applets

data callbacks were only used for streams attached to a connection and
for health-checks. However there is a callback used by task_run_applet. So,
si_applet_wake_cb() is first renamed to cs_applet_process() and it is
defined as the data callback for streams attached to an applet. This way,
this part now manipulates a conn-stream instead of a stream-interface. In
addition, applets are no longer handled as an exception for this part.
include/haproxy/stream_interface.h
src/applet.c
src/conn_stream.c
src/stream_interface.c