]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Increase the QUIC connections RX buffer size (upto 64Kb)
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 30 Jun 2022 10:04:38 +0000 (12:04 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 30 Jun 2022 12:34:32 +0000 (14:34 +0200)
With ~1500 bytes QUIC datagrams, we can handle less than 200 datagrams
which is less than the default maxpollevents value. This should reduce
the chances of fulfilling the connections RX buffers as reported by
Tristan in GH #1737.

Must be backported to 2.6.

include/haproxy/xprt_quic-t.h

index b51779abae29d44f1da5f6de0dc78910143508e2..87127c25eb3c80057315d3094180835a137c6e8c 100644 (file)
@@ -258,7 +258,7 @@ enum quic_pkt_type {
 /* Size of the internal buffer of QUIC TX ring buffers (must be a power of 2) */
 #define QUIC_TX_RING_BUFSZ  (1UL << 12)
 /* Size of the QUIC RX buffer for the connections */
-#define QUIC_CONN_RX_BUFSZ (1UL << 14)
+#define QUIC_CONN_RX_BUFSZ (1UL << 16)
 
 extern struct trace_source trace_quic;
 extern struct pool_head *pool_head_quic_tx_ring;