]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream-int: replace si_update() with si_update_both()
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Nov 2018 17:15:29 +0000 (18:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2018 09:18:37 +0000 (10:18 +0100)
commitd14844a7343073a4a290da3c8330f236a848f54d
tree7d5507d44fa11d23e3b9978d367c7044321c8606
parent8fe516f08affb55f5fed68896d93fd40e6873f34
MINOR: stream-int: replace si_update() with si_update_both()

The function used to be called in turn for each side of the stream, but
since it's called exclusively from process_stream(), it prevents us from
making use of the knowledge we have of the operations in progress for
each side, resulting in having to go all the way through functions like
stream_int_notify() which are not appropriate there.

That patch creates a new function, si_update_both() which takes two
stream interfaces expected to belong to the same stream, and processes
their flags in a more suitable order, but for now doesn't change the
logic at all.

The next step will consist in trying to reinsert the rest of the socket
layer-specific update code to ultimately update the flags correctly at
the end of the operation.
include/proto/stream_interface.h
src/stream.c
src/stream_interface.c