MEDIUM: quic: count quic_conn for global sslconns
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 Oct 2023 13:38:50 +0000 (15:38 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Oct 2023 13:35:58 +0000 (15:35 +0200)
commit4a89dba6d576677219ec897fc3ab99e8f40d3923
treeba48c36f55654ad8610230f21d26791372a68c1e
parent7735cf3854eb155a50a5ea747406f2a25657e25c
MEDIUM: quic: count quic_conn for global sslconns

Similar to the previous commit which check for maxconn before allocating
a QUIC connection, this patch checks for maxsslconn at the same step.
This is necessary as a QUIC connection cannot run without a SSL context.

This should be backported up to 2.6. It relies on the following patch :
  "BUG/MINOR: ssl: use a thread-safe sslconns increment"
include/haproxy/quic_ssl.h
src/quic_rx.c
src/quic_ssl.c