From bf789b614d05b7101b422be80531256faa0c0996 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:28:17 -0700 Subject: [PATCH] v1.16: Use QUIC Retry packets during handshake (backport of #31802) (#32000) Use QUIC Retry packets during handshake (#31802) Have the Quic server send a Retry packet to verify client control of the source IP (cherry picked from commit 36222a44d72e7c511769d1929ba28768a26d3988) Co-authored-by: ryleung-solana <91908731+ryleung-solana@users.noreply.github.com> --- streamer/src/quic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/streamer/src/quic.rs b/streamer/src/quic.rs index 3b326f182e97f5..20b013f010c104 100644 --- a/streamer/src/quic.rs +++ b/streamer/src/quic.rs @@ -71,6 +71,7 @@ pub(crate) fn configure_server( server_tls_config.alpn_protocols = vec![ALPN_TPU_PROTOCOL_ID.to_vec()]; let mut server_config = ServerConfig::with_crypto(Arc::new(server_tls_config)); + server_config.use_retry(true); let config = Arc::get_mut(&mut server_config.transport).unwrap(); // QUIC_MAX_CONCURRENT_STREAMS doubled, which was found to improve reliability