]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Tune RXFC default parameters
authorHugo Landau <hlandau@openssl.org>
Fri, 28 Jul 2023 17:03:10 +0000 (18:03 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 10 Aug 2023 17:19:51 +0000 (18:19 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565)

ssl/quic/quic_channel.c
ssl/quic/quic_record_rx.c

index a4f451d6b913ade93af013d1121e76bf4651d749..6549618816e3999784f6e5221e1e17b99d1dfe76 100644 (file)
@@ -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
 
index 4f4a1b84a9b4cf0a28a8d336b31eebfae20ef8b0..bb94d3085e06c60e547b0855ddea4bbdb264fd32 100644 (file)
@@ -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) */