]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: use the same stream notification function for applets and conns
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Sep 2015 18:06:13 +0000 (20:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 19:16:02 +0000 (21:16 +0200)
commit651e18292d0d146e4c846c33cf390af23cdf1823
tree811ec675461aa7122f7ec9d825066ee4ecc6c69a
parent615f28bec1aace96133550ba0e4895a463196968
MEDIUM: stream-int: use the same stream notification function for applets and conns

The code to report completion after a connection update or an applet update
was almost the same since applets stole it from the connection. But the
differences made them hard to maintain and prevented the creation of new
functions doing only one part of the work.

This patch replaces the common code from the si_conn_wake_cb() and
si_applet_wake_cb() with a single call to stream_int_notify() which only
notifies the stream (si+channels+task) from the outside.

No functional change was made beyond this.
src/stream_interface.c