]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: muxes: Add an optional input buffer during mux initialization
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Apr 2019 09:22:47 +0000 (11:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commit51f73eb11a24d1a45479b81104033b084aaee050
tree6f8f929cde881ae90e460da500f931a55e5d611b
parente9b7072e9ea7f5e273fc49ce9452430ad311e463
MEDIUM: muxes: Add an optional input buffer during mux initialization

The mux's callback init() now take a pointer to a buffer as extra argument. It
must be used by the multiplexer as its input buffer. This buffer is always NULL
when a multiplexer is initialized with a fresh connection. But if a mux upgrade
is performed, it may be filled with existing data. Note that, for now, mux
upgrades are not supported. But this commit is mandatory to do so.
include/proto/connection.h
include/types/connection.h
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c