From 5d8a4dd38c65c7f4d1b573a1ef703a89be2c0145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Tue, 16 Nov 2021 23:03:27 +0100 Subject: [PATCH] udp load test: default to multiple client ips; improve docs --- aquatic_udp_load_test/src/common.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aquatic_udp_load_test/src/common.rs b/aquatic_udp_load_test/src/common.rs index 98ef435..6339f32 100644 --- a/aquatic_udp_load_test/src/common.rs +++ b/aquatic_udp_load_test/src/common.rs @@ -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,