]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux: make mux->snd_buf() take the byte count in argument
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Jun 2018 16:38:55 +0000 (18:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
commitdeccd1116db31d64e864a60f0b1a9d0ce017ee1d
treecbe9310ecf46db056723a8751e7fe3a6c09b333b
parent787db9a6a47a1cd78450636d4ecb915d7462d7b8
MEDIUM: mux: make mux->snd_buf() take the byte count in argument

This way the mux doesn't need to modify the buffer's metadata anymore
nor to know the output's size. The mux->snd_buf() function now takes a
const buffer and it's up to the caller to update the buffer's state.

The return type was updated to return a size_t to comply with the count
argument.
include/types/connection.h
src/checks.c
src/mux_h2.c
src/mux_pt.c
src/stream_interface.c