]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: move the conn_stream specific calls to the stream-int
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Nov 2018 18:51:07 +0000 (19:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 17 Nov 2018 18:53:45 +0000 (19:53 +0100)
commitade6478a8cf0e522c1c2be9244d816c8b81ec21d
treea710a18d4e8cd2fcaa03d84081a4b03293a3d93e
parent00b3b8c361d68eedc33036ec01c30fd12d46f536
MINOR: stream: move the conn_stream specific calls to the stream-int

There are still some unwelcome synchronous calls to si_cs_recv() in
process_stream(). Let's have a new function si_sync_recv() to perform
a synchronous receive call on a stream interface regardless of the type
of its endpoint, and move these calls there. For now it only implements
conn_streams since it doesn't seem useful to support applets there. The
function implements an extra check for the stream interface to be in an
established state before attempting anything.
include/proto/stream_interface.h
src/stream.c