aquatic_http_load_test: use longer poll timeout, adjust conn creation

This commit is contained in:
Joakim Frostegård 2020-07-20 16:20:57 +02:00
parent b9e875ad90
commit 3eb18fc973
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ impl Default for Config {
impl Default for NetworkConfig { impl Default for NetworkConfig {
fn default() -> Self { fn default() -> Self {
Self { Self {
poll_timeout_microseconds: 20, poll_timeout_microseconds: 1000,
poll_event_capacity: 4096, poll_event_capacity: 4096,
} }
} }

View file

@ -172,7 +172,7 @@ pub fn run_socket_thread(
let mut initial_sent = false; let mut initial_sent = false;
let mut iter_counter = 0usize; let mut iter_counter = 0usize;
const CREATE_CONN_INTERVAL: usize = 2 ^ 20; const CREATE_CONN_INTERVAL: usize = 2 ^ 16;
loop { loop {
poll.poll(&mut events, Some(timeout)) poll.poll(&mut events, Some(timeout))