]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: remove sendto() usage variant
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 Feb 2024 14:29:48 +0000 (15:29 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Feb 2024 15:42:05 +0000 (16:42 +0100)
commit8de9f8f193c35acc2322abd846bfe79af2fdc85d
tree90427ea3f3358ebe653f5757004251fb365f1c9f
parentea90c3930222ce714764a732ff022e1756b329a5
MINOR: quic: remove sendto() usage variant

qc_snd_buf() is a wrapper around emission syscalls. Given QUIC
configuration, a different variant is used. When using connection
socket, send() is the only used. For listener sockets, sendmsg() and
sendto() are possible. The first one is used only if local address has
been retrieved prior. This allows to fix it on sending to guarantee the
source address selection. Finally, sendto() is used for systems which do
not support local address retrieval.

All of these variants render the code too complex. As such, this patch
simplifies this by removing sendto() alternative. Now, sendmsg() is
always used for listener sockets. Source address is then specified only
if supported by the system.

This patch should not exhibit functional behavior changes. It will be
useful when implementing GSO as the code is now simpler.
src/quic_sock.c