mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp load tester: open multiple sockets per worker; minor other fixes
This commit is contained in:
parent
6745eba2de
commit
d8bdcfcf0a
4 changed files with 60 additions and 44 deletions
|
|
@ -60,8 +60,8 @@ pub struct NetworkConfig {
|
|||
///
|
||||
/// Setting this to true can cause issues on macOS.
|
||||
pub multiple_client_ipv4s: bool,
|
||||
/// Number of first client port
|
||||
pub first_port: u16,
|
||||
/// Number of sockets to open per worker
|
||||
pub sockets_per_worker: u8,
|
||||
/// Size of socket recv buffer. Use 0 for OS default.
|
||||
///
|
||||
/// This setting can have a big impact on dropped packages. It might
|
||||
|
|
@ -81,7 +81,7 @@ impl Default for NetworkConfig {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
multiple_client_ipv4s: true,
|
||||
first_port: 45_000,
|
||||
sockets_per_worker: 4,
|
||||
recv_buffer: 8_000_000,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue