anza-xyz / agave

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://www.anza.xyz/
Apache License 2.0
213 stars 81 forks source link

QUIC server not supporting 0-RTT #1726

Open HGuillemet opened 2 weeks ago

HGuillemet commented 2 weeks ago

Problem

The QUIC server doesn't not accept client connections with 0-RTT. Is that a wanted behaviour ? The rust-ls server config parameter max_early_data_size must be set to u32::MAX so that the necessary crypto data is sent to the client and future 0-RTT connections are enabled. Solana currently uses the default of 0.

Proposed Solution

Add

server_tls_config.max_early_data_size=u32::MAX;

here.

ripatel-fd commented 2 weeks ago

Setting max_early_data_size to 2^32 creates a spamming incentive because 0-RTT packets are hard to rate-limit. Don't do this