]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: Convert quic_dgram_read() into a task
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 27 Jan 2022 08:15:40 +0000 (09:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jan 2022 15:37:55 +0000 (16:37 +0100)
commit25bc8875d7beb0cb1444f68d1a9ba153058698b2
tree35932f800a109996026b19cd577e73ec69024513
parent220894a5d601fdfc393f84fd0afe44c5bf3c500b
MINOR: quic: Convert quic_dgram_read() into a task

quic_dgram_read() parses all the QUIC packets from a UDP datagram. It is the best
candidate to be converted into a task, because is processing data unit is the UDP
datagram received by the QUIC sock i/o handler. If correct, this datagram is
added to the context of a task, quic_lstnr_dghdlr(), a conversion of quic_dgram_read()
into a task. This task pop a datagram from an mt_list and passes it among to
the packet handler (quic_lstnr_pkt_rcv()).
Modify the quic_dgram struct to play the role of the old quic_dgram_ctx struct when
passed to quic_lstnr_pkt_rcv().
Modify the datagram handlers allocation to set their tasks to quic_lstnr_dghdlr().
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/proto_quic.c
src/xprt_quic.c