solana/streamer
behzad nouri 3cb22458f8
generalizes sample-size in quic::ConnectionTable::prune_random (#31011)
Even if there are many connections with stake less than the
threshold_stake, prune_random might still reject if both randomly
sampled connections have stake bigger than the threshold. A bigger
sample-size will make this less likely (at the cost of more
computations):
https://github.com/solana-labs/solana/blob/2cbd5d6c9/streamer/src/nonblocking/quic.rs#L958-L985

In order to benchmark for an optimal sample-size, the commit generalizes
the sample-size and makes it configurable.
2023-04-03 13:33:12 +00:00
..
src generalizes sample-size in quic::ConnectionTable::prune_random (#31011) 2023-04-03 13:33:12 +00:00
tests sdk: Make Packet::meta private, use accessor functions (#29092) 2022-12-06 12:54:49 +01:00
Cargo.toml Quic server batching (#30330) 2023-03-16 21:50:57 +08:00