solana/streamer/src
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
..
nonblocking generalizes sample-size in quic::ConnectionTable::prune_random (#31011) 2023-04-03 13:33:12 +00:00
lib.rs Move QUIC TLS certificate code in its own file (#26569) 2022-07-12 13:34:37 -07:00
packet.rs uses Duration type instead of untyped ..._ms: u64 (#30971) 2023-03-31 15:42:49 +00:00
quic.rs uses Duration type instead of untyped ..._ms: u64 (#30971) 2023-03-31 15:42:49 +00:00
recvmmsg.rs Add `MSG_WAITFORONE.try_into().unwrap()` to deal with different type signature on musl libc (#29369) 2023-01-25 13:40:14 +01:00
sendmmsg.rs patches errors from clippy::uninlined_format_args 2022-12-06 19:32:15 +00:00
socket.rs embeds the new gossip ContactInfo in ClusterInfo (#30022) 2023-02-10 20:07:45 +00:00
streamer.rs uses Duration type instead of untyped ..._ms: u64 (#30971) 2023-03-31 15:42:49 +00:00
tls_certificates.rs Use Ipv4Addr::{LOCALHOST, UNSPECIFIED} constants (#29813) 2023-01-23 16:49:51 -06:00