diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-10-23 15:44:26 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-10-25 11:14:24 +0100 |
commit | 29f633840df49f29e71a57cc9682d9f3703bfe3b (patch) | |
tree | 363011ce367b834da1fc03611ce0608b0927315b | |
parent | 4d100bb76ad43da75660fa8661d258eaa78fb1c3 (diff) |
QUIC CHANNEL: Tweak crypto buffer sizes
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22476)
-rw-r--r-- | ssl/quic/quic_channel.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index a956fa4f68..28ccf66313 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -25,9 +25,10 @@ * TODO(QUIC SERVER): Implement retry logic */ -#define INIT_DCID_LEN 8 -#define INIT_CRYPTO_BUF_LEN 8192 -#define INIT_APP_BUF_LEN 8192 +#define INIT_DCID_LEN 8 +#define INIT_CRYPTO_RECV_BUF_LEN 16384 +#define INIT_CRYPTO_SEND_BUF_LEN 16384 +#define INIT_APP_BUF_LEN 8192 /* * Interval before we force a PING to ensure NATs don't timeout. This is based @@ -323,7 +324,7 @@ static int ch_init(QUIC_CHANNEL *ch) for (pn_space = QUIC_PN_SPACE_INITIAL; pn_space < QUIC_PN_SPACE_NUM; ++pn_space) if (!ossl_quic_rxfc_init_standalone(&ch->crypto_rxfc[pn_space], - INIT_CRYPTO_BUF_LEN, + INIT_CRYPTO_RECV_BUF_LEN, get_time, ch)) goto err; @@ -375,7 +376,7 @@ static int ch_init(QUIC_CHANNEL *ch) txp_args.now_arg = ch; for (pn_space = QUIC_PN_SPACE_INITIAL; pn_space < QUIC_PN_SPACE_NUM; ++pn_space) { - ch->crypto_send[pn_space] = ossl_quic_sstream_new(INIT_CRYPTO_BUF_LEN); + ch->crypto_send[pn_space] = ossl_quic_sstream_new(INIT_CRYPTO_SEND_BUF_LEN); if (ch->crypto_send[pn_space] == NULL) goto err; |