mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-27 05:41:10 +01:00
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:
parent
0627f470df
commit
860028db47
@ -430,10 +430,6 @@ struct server {
|
|||||||
char *alpn_str; /* ALPN protocol string */
|
char *alpn_str; /* ALPN protocol string */
|
||||||
int alpn_len; /* ALPN protocol string length */
|
int alpn_len; /* ALPN protocol string length */
|
||||||
} ssl_ctx;
|
} 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 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 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 */
|
struct list ip_rec_item; /* to attach server to a A or AAAA record item */
|
||||||
|
|||||||
@ -1436,9 +1436,6 @@ void proxy_preset_defaults(struct proxy *defproxy)
|
|||||||
|
|
||||||
defproxy->email_alert.level = LOG_ALERT;
|
defproxy->email_alert.level = LOG_ALERT;
|
||||||
defproxy->load_server_state_from_file = PR_SRV_STATE_FILE_UNSPEC;
|
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)
|
if (defproxy->cap & PR_CAP_INT)
|
||||||
defproxy->timeout.connect = 5000;
|
defproxy->timeout.connect = 5000;
|
||||||
|
|||||||
@ -2779,9 +2779,6 @@ struct server *new_server(struct proxy *proxy)
|
|||||||
srv->agent.server = srv;
|
srv->agent.server = srv;
|
||||||
srv->agent.proxy = proxy;
|
srv->agent.proxy = proxy;
|
||||||
srv->xprt = srv->check.xprt = srv->agent.xprt = xprt_get(XPRT_RAW);
|
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;
|
srv->extra_counters = NULL;
|
||||||
#ifdef USE_OPENSSL
|
#ifdef USE_OPENSSL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user