mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp load test: default to multiple client ips; improve docs
This commit is contained in:
parent
42d99cefee
commit
5d8a4dd38c
1 changed files with 3 additions and 4 deletions
|
|
@ -40,9 +40,8 @@ pub struct Config {
|
|||
pub struct NetworkConfig {
|
||||
/// True means bind to one localhost IP per socket.
|
||||
///
|
||||
/// The point of multiple IPs is to possibly cause a better distribution
|
||||
/// of requests to servers with SO_REUSEPORT option, but it doesn't
|
||||
/// necessarily help.
|
||||
/// The point of multiple IPs is to cause a better distribution
|
||||
/// of requests to servers with SO_REUSEPORT option.
|
||||
///
|
||||
/// Setting this to true can cause issues on macOS.
|
||||
pub multiple_client_ipv4s: bool,
|
||||
|
|
@ -120,7 +119,7 @@ impl Default for Config {
|
|||
impl Default for NetworkConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
multiple_client_ipv4s: false,
|
||||
multiple_client_ipv4s: true,
|
||||
first_port: 45_000,
|
||||
poll_timeout: 276,
|
||||
poll_event_capacity: 2_877,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue