]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: add a new receive flag : CO_RFL_BUF_WET
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Jun 2018 04:23:38 +0000 (06:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
commit337ea57cfc9008e7d6c2e57ead8bea9bdb093d49
tree80d3b3abd2b9e39215667df2cd0e849df43fd4f7
parent7f3225f2512f4b7e212212705ec5caecb5c7be74
MINOR: connection: add a new receive flag : CO_RFL_BUF_WET

With this flag we introduce the notion of "dry" vs "wet" buffers : some
demultiplexers like the H2 mux require as much room as possible for some
operations that are not retryable like decoding a headers frame. For this
they need to know if the buffer is congested with data scheduled for
leaving soon or not. Since the new API will not provide this information
in the buffer itself, the caller must indicate it. We never need to know
the amount of such data, just the fact that the buffer is not in its
optimal condition to be used for receipt. This "CO_RFL_BUF_WET" flag is
used to mention that such outgoing data are still pending in the buffer
and that a sensitive receiver should better let it "dry" before using it.
include/types/connection.h
src/mux_h2.c
src/stream_interface.c