]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: Only save previous connection state for the server side
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Mar 2022 15:13:02 +0000 (17:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:14 +0000 (15:10 +0200)
commita70a3548bcb0d9100f6418ee859accdb4a7967e1
treea469ff3beedf821f3b3c8eebc1b061d4191e319c
parent78ed7f247bba982dc9f28c7980539ff95328f348
MINOR: stream: Only save previous connection state for the server side

The previous connection state on the client side was only used for debugging
purpose to report client close. But this may be handled when the client
stream-interface is switched from SI_ST_DIS to SI_ST_CLO.

So, there only remains the previous connection state on the server side that
is used by the stream, in process_stream(), to be able to set the correct
termination flags. Thus, instead of keeping this info in the
stream-interface for only one side, the info is now stored in the stream
itself.
include/haproxy/stream-t.h
include/haproxy/stream_interface-t.h
include/haproxy/stream_interface.h
src/cli.c
src/stream.c
src/stream_interface.c