MINOR: dgram: allow to set rcv/sndbuf for dgram sockets as well
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Oct 2023 13:33:46 +0000 (15:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Oct 2023 15:01:19 +0000 (17:01 +0200)
commit91ed52976c0507b2c6b174ff29b7b3885686a12c
tree99129f0e41b9e154d5592ed450a3dd7c0626f4e9
parent203211f4cb5e35fb509835f8034ec84652da3011
MINOR: dgram: allow to set rcv/sndbuf for dgram sockets as well

tune.rcvbuf.client and tune.rcvbuf.server are not suitable for shared
dgram sockets because they're per connection so their units are not the
same. However, QUIC's listener and log servers are not connected and
take per-thread or per-process traffic where a socket log buffer might
be too small, causing undesirable packet losses and retransmits in the
case of QUIC. This essentially manifests in listener mode with new
connections taking a lot of time to set up under heavy traffic due to
the small queues causing delays. Let's add a few new settings allowing
to set these shared socket sizes on the frontend and backend side (which
reminds that these are per-front/back and not per client/server hence
not per connection).
doc/configuration.txt
include/haproxy/global-t.h
src/dgram.c
src/log.c
src/proto_quic.c
src/proto_udp.c