From: Hugo Landau Date: Fri, 28 Jul 2023 17:03:10 +0000 (+0100) Subject: QUIC CHANNEL: Tune RXFC default parameters X-Git-Tag: openssl-3.2.0-alpha1~227 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89b0948e534c1522e7d00b60cf55f5ada0bb39da;p=thirdparty%2Fopenssl.git QUIC CHANNEL: Tune RXFC default parameters Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21565) --- diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index a4f451d6b91..6549618816e 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -117,11 +117,11 @@ static int gen_rand_conn_id(OSSL_LIB_CTX *libctx, size_t len, QUIC_CONN_ID *cid) * QUIC Channel Initialization and Teardown * ======================================== */ -#define DEFAULT_INIT_CONN_RXFC_WND (2 * 1024 * 1024) -#define DEFAULT_CONN_RXFC_MAX_WND_MUL 5 +#define DEFAULT_INIT_CONN_RXFC_WND (768 * 1024) +#define DEFAULT_CONN_RXFC_MAX_WND_MUL 20 -#define DEFAULT_INIT_STREAM_RXFC_WND (2 * 1024 * 1024) -#define DEFAULT_STREAM_RXFC_MAX_WND_MUL 5 +#define DEFAULT_INIT_STREAM_RXFC_WND (512 * 1024) +#define DEFAULT_STREAM_RXFC_MAX_WND_MUL 12 #define DEFAULT_INIT_CONN_MAX_STREAMS 100 diff --git a/ssl/quic/quic_record_rx.c b/ssl/quic/quic_record_rx.c index 4f4a1b84a9b..bb94d3085e0 100644 --- a/ssl/quic/quic_record_rx.c +++ b/ssl/quic/quic_record_rx.c @@ -1089,7 +1089,7 @@ malformed: * discerned. * * Advance over the entire remainder of the datagram, and mark it as - * processed gap as an optimization. + * processed as an optimization. */ pkt_mark(&urxe->processed, pkt_idx); /* We don't care if this fails (see above) */