]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: Pass an optional input buffer when a stream is created
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Sep 2020 09:40:13 +0000 (11:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commit26256f86e1aeb4253df5cb40c40ab0dee510a40a
tree2547c180ea8000ddcf9afb9cc3ddd834f6380f69
parentafc02a44361486928533db02d6a317e727df8f0e
MINOR: stream: Pass an optional input buffer when a stream is created

It is now possible to set the buffer used by the channel request buffer when
a stream is created. It may be useful if input data are already received,
instead of waiting the first call to the mux rcv_buf() callback. This change
is mandatory to support H1 connection with no stream attached.

For now, the multiplexers don't pass any buffer. BUF_NULL is thus used to
call stream_create_from_cs().
include/haproxy/channel.h
include/haproxy/stream.h
src/flt_spoe.c
src/hlua.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/peers.c
src/sink.c
src/stream.c