]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: conn_stream: add an rx buffer to the conn_stream
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Mar 2018 09:43:58 +0000 (10:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 17:21:43 +0000 (19:21 +0200)
commit5e1cc5ea83f53b680feb15a4bcc62d3b7d22c43f
tree1d421067de2bd9876ba51049ab998306fed02be0
parenta3f7efe009f90dd67b05d2c9ba7c08d608f5552e
MINOR: conn_stream: add an rx buffer to the conn_stream

In order to reorganize the connection layers, recv() operations will
need to be retryable and to support partial transfers. This requires
an intermediary buffer to hold the data coming from the mux. After a
few attempts, it turns out that this buffer is best placed inside the
conn_stream itself. For now it's only set to buf_empty and it will be
up to the caller to allocate it if required.
include/proto/connection.h
include/types/connection.h