]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream-int: implement a new stream_int_update() function
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2015 09:32:22 +0000 (11:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 16:07:16 +0000 (18:07 +0200)
commit25f1310f33c3615e95da86e0c34ba6d81dc13223
tree7fb9a4e7ad7c8de5209d8427e17e8eada6d40130
parent2f4e7020318ef41ccc9ecc252b75bdd6f2dc3418
MINOR: stream-int: implement a new stream_int_update() function

This function is designed to be called from within the stream handler to
update the channels' expiration timers and the stream interface's flags
based on the channels' flags. It needs to be called only once after the
channels' flags have settled down, and before they are cleared, though it
doesn't harm to call it as often as desired (it just slightly hurts
performance). It must not be called from outside of the stream handler,
as what it does will be used to compute the stream task's expiration.

The code was taken directly from stream_int_update_applet() and
stream_int_update_conn() which had exactly the same one except for
applet-specific or connection-specific status update.
include/proto/stream_interface.h
src/stream_interface.c