Use QUIC Retry packets during handshake (#31802)

Have the Quic server send a Retry packet to verify client control of the source IP
This commit is contained in:
ryleung-solana 2023-06-07 05:23:23 +08:00 committed by GitHub
parent 85a0e31c60
commit 36222a44d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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