]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: conn_stream: add cs_send() as a default snd_buf() function
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 May 2018 13:03:43 +0000 (15:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Aug 2018 07:53:58 +0000 (09:53 +0200)
commit063f786553d97f53aefba3651d7d7ce22dde4952
treed4c661b1dfc2c75a464ce78f90ee97d6424e4533
parent3c51802fb9a10f18b0823562432de641d0571b1a
MINOR: conn_stream: add cs_send() as a default snd_buf() function

This function is generic and is able to automatically transfer data from a
buffer to the conn_stream's tx buffer. It does this automatically if the mux
doesn't define another snd_buf() function.

It cannot yet be used as-is with the conn_stream's txbuf without risking to
lose data on close since conn_streams need to be orphaned for this.
include/proto/connection.h
src/checks.c
src/connection.c
src/stream_interface.c