]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: refactor quic CID association with threads
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 Jan 2022 15:02:13 +0000 (16:02 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 Jan 2022 15:29:27 +0000 (16:29 +0100)
commit0442efd214c649a637755889c5a785ceab6d4211
tree548dd1196df1b3e01a4f083bc410a4ca19bece85
parentdf1c7c78c1f0ae711a06bb9e9e74fd9535d31021
MINOR: quic: refactor quic CID association with threads

Do not use an extra DCID parameter on new_quic_cid to be able to
associated a new generated CID to a thread ID. Simply do the computation
inside the function. The API is cleaner this way.

This also has the effects to improve the apparent randomness of CIDs.
With the previous version the first byte of all CIDs are identical for a
connection which could lead to privacy issue. This version may not be
totally perfect on this aspect but it improves the situation.
include/haproxy/xprt_quic.h
src/xprt_quic.c