CLEANUP: quic: Remaining useless code into server part

Remove some QUIC definitions of members from server structure as the haproxy QUIC
stack does not support at all the server part (QUIC client) as this time.
Remove the statements in relation with their initializations.

This patch should be backported as far as 2.6 to save memory.
This commit is contained in:
Frédéric Lécaille 2024-01-04 11:16:06 +01:00
parent 0627f470df
commit 860028db47
3 changed files with 0 additions and 10 deletions

View File

@ -430,10 +430,6 @@ struct server {
char *alpn_str; /* ALPN protocol string */
int alpn_len; /* ALPN protocol string length */
} ssl_ctx;
#ifdef USE_QUIC
struct quic_transport_params quic_params; /* QUIC transport parameters */
struct eb_root cids; /* QUIC connections IDs. */
#endif
struct resolv_srvrq *srvrq; /* Pointer representing the DNS SRV requeest, if any */
struct list srv_rec_item; /* to attach server to a srv record item */
struct list ip_rec_item; /* to attach server to a A or AAAA record item */

View File

@ -1436,9 +1436,6 @@ void proxy_preset_defaults(struct proxy *defproxy)
defproxy->email_alert.level = LOG_ALERT;
defproxy->load_server_state_from_file = PR_SRV_STATE_FILE_UNSPEC;
#if defined(USE_QUIC)
quic_transport_params_init(&defproxy->defsrv.quic_params, 0);
#endif
if (defproxy->cap & PR_CAP_INT)
defproxy->timeout.connect = 5000;

View File

@ -2779,9 +2779,6 @@ struct server *new_server(struct proxy *proxy)
srv->agent.server = srv;
srv->agent.proxy = proxy;
srv->xprt = srv->check.xprt = srv->agent.xprt = xprt_get(XPRT_RAW);
#if defined(USE_QUIC)
srv->cids = EB_ROOT_UNIQUE;
#endif
srv->extra_counters = NULL;
#ifdef USE_OPENSSL