MEDIUM: raw-sock: Specifiy amount of data to send via snd_pipe callback
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Sep 2023 16:05:29 +0000 (18:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:51:13 +0000 (18:51 +0200)
commit91f1c5519a5a96dc12188d723a2bf0fe485d82fb
tree1de60f9ffcd2ee449c02d82787038e0832bd3962
parentd57a66d63a5f545ef4c605b4ca186360c14c0929
MEDIUM: raw-sock: Specifiy amount of data to send via snd_pipe callback

When data were sent using the kernel splicing, we tried to send all data
with no restriction. Most of time it is valid. However, because the payload
representation may differ between the producer and the consumer, it is
important to be able to specify how must data to send via the splicing.

Of course, for performance reason, it is important to maximize amount of
data send via splicing at each call. However, on edge-cases, this now can be
limited.
include/haproxy/connection-t.h
src/raw_sock.c