MEDIUM: connection: make xprt->snd_buf() take the byte count in argument
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Jun 2018 16:31:46 +0000 (18:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
commit787db9a6a47a1cd78450636d4ecb915d7462d7b8
tree289b4ae35169fecfbad373dbba517d0166480d7a
parent55f3ce1c91a740b9959db667e82465829f804174
MEDIUM: connection: make xprt->snd_buf() take the byte count in argument

This way the senders don't need to modify the buffer's metadata anymore
nor to know about the output's split point. This way the functions can
take a const buffer and it's clearer who's in charge of updating the
buffer after a send. That's why the buffer realignment is now performed
by the caller of the transport's snd_buf() functions.

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