From: Jan Hák Date: Wed, 29 Apr 2026 12:20:41 +0000 (+0200) Subject: server: quic table max conns minimum limited to 1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;ds=inline;p=thirdparty%2Fknot-dns.git server: quic table max conns minimum limited to 1 --- diff --git a/src/knot/server/quic-handler.c b/src/knot/server/quic-handler.c index 509271fd35..0a34f6d0bc 100644 --- a/src/knot/server/quic-handler.c +++ b/src/knot/server/quic-handler.c @@ -105,8 +105,8 @@ knot_quic_table_t *quic_make_table(struct server *server) conf_t *pconf = conf(); size_t udp_pl = MIN(pconf->cache.srv_udp_max_payload_ipv4, pconf->cache.srv_udp_max_payload_ipv6); - size_t quic_max_conns = pconf->cache.srv_quic_max_clients / - pconf->cache.srv_udp_threads; + size_t quic_max_conns = MAX(pconf->cache.srv_quic_max_clients / + pconf->cache.srv_udp_threads, 1); size_t quic_max_inbufs= quic_max_conns * QUIC_IBUFS_PER_CONN; size_t quic_max_obufs = pconf->cache.srv_quic_obuf_max_size;