]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: stream: use a regular ->update for all stream interfaces
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Apr 2015 16:13:56 +0000 (18:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 15:56:16 +0000 (17:56 +0200)
commit563cc376094b837c556d41ac07e3fc6ddadf6585
treeeabb52a10f7185366ddca18658c1df2480730953
parent828824af05c142eaf8796865e9bce94d978a9951
MAJOR: stream: use a regular ->update for all stream interfaces

Now si->update() is used to update any type of stream interface, whether
it's an applet, a connection or even nothing. We don't call si_applet_call()
anymore at the end of the resync and we don't have the risk that the
stream's task is reinserted into the run queue, which makes the code
a bit simpler.

The stream_int_update_applet() function was simplified to ensure that
it remained compatible with this standardized calling convention. It
was almost copy-pasted from the update code dedicated to connections.
Just like for si_applet_done(), it seems that it should be possible to
merge the two functions except that it would require some slow operations,
except maybe if the type of end point is tested inside the update function
itself.
src/stream.c
src/stream_interface.c