From 47c71376e2ec95cab2a666551cdc32725e2a31c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 20 Jul 2020 16:34:50 +0200 Subject: [PATCH] http load test: increase conn inverval const, move out of fn --- aquatic_http_load_test/src/network.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aquatic_http_load_test/src/network.rs b/aquatic_http_load_test/src/network.rs index fa918f5..a4c2f4b 100644 --- a/aquatic_http_load_test/src/network.rs +++ b/aquatic_http_load_test/src/network.rs @@ -149,6 +149,7 @@ pub type ConnectionMap = Slab; const NUM_CONNECTIONS: usize = 128; +const CREATE_CONN_INTERVAL: usize = 2 ^ 18; pub fn run_socket_thread( @@ -177,8 +178,6 @@ pub fn run_socket_thread( let mut initial_sent = false; let mut iter_counter = 0usize; - const CREATE_CONN_INTERVAL: usize = 2 ^ 16; - loop { poll.poll(&mut events, Some(timeout)) .expect("failed polling");