Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
v1.16: Use QUIC Retry packets during handshake (backport of #31802) (#…
Browse files Browse the repository at this point in the history
…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 36222a4)

Co-authored-by: ryleung-solana <91908731+ryleung-solana@users.noreply.github.com>
  • Loading branch information
mergify[bot] and ryleung-solana authored Jun 6, 2023
1 parent 82ef8a2 commit bf789b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions streamer/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf789b6

Please sign in to comment.