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

Commit

Permalink
Use QUIC Retry packets during handshake (#31802)
Browse files Browse the repository at this point in the history
Have the Quic server send a Retry packet to verify client control of the source IP
  • Loading branch information
ryleung-solana authored Jun 6, 2023
1 parent 85a0e31 commit 36222a4
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 36222a4

Please sign in to comment.