]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream_interface: offer a generic function for connection updates
authorWilly Tarreau <wtarreau@exceliance.fr>
Mon, 20 Aug 2012 10:06:26 +0000 (12:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:54:18 +0000 (21:54 +0200)
commit100c46712068f550145f250f597d25daf3c588cd
treee9056751fb2273105aa47debea1e2a1c10e31b7e
parent26f44d1e915cb2818201a67d814993b7d9e64009
MEDIUM: stream_interface: offer a generic function for connection updates

We need to have a generic function to be called by upper layers when buffer
flags have been updated (the si->update function). At the moment, both sock_raw
and sock_ssl had their own which basically was a copy-paste. Since these
functions are only used to update stream interface flags, it is logical to
have them handled by the stream interface code.

This allowed us to remove the stream_interface-specific update function from
sock_raw and sock_ssl which now use the generic code.

The stream_sock_update_conn callback has also been more appropriately renamed
conn_notify_si() since it's meant to be called by lower layers to notify the
SI and possibly upper layers about incoming changes.
include/proto/stream_interface.h
src/connection.c
src/sock_raw.c
src/stream_interface.c