]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Replace pool_zalloc() by pool_malloc() for fake datagrams
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 8 Aug 2022 19:10:58 +0000 (21:10 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Mon, 8 Aug 2022 19:10:58 +0000 (21:10 +0200)
commitba19acd822011a97a72da7eb71215329774f0977
treef0340a85dad1db17494eaa4d55b5f3f4935dab0b
parentffde3168fc7fd093d5e1d904dc9a18dcc53b21b8
MINOR: quic: Replace pool_zalloc() by pool_malloc() for fake datagrams

These fake datagrams are only used by the low level I/O handler. They
are not provided to the "by connection" datagram handlers. This
is why they are not MT_LIST_APPEND()ed to the listner RX buffer list
(see &quic_dghdlrs[cid_tid].dgrams in quic_lstnr_dgram_dispatch().
Replace the call to pool_zalloc() to by the lighter call to pool_malloc()
and initialize only the ->buf and ->length members. This is safe because
only these fields are inspected by the low level I/O handler.
src/quic_sock.c