http load test: increase conn inverval const, move out of fn

This commit is contained in:
Joakim Frostegård 2020-07-20 16:34:50 +02:00
parent 6691b77824
commit 47c71376e2

View file

@ -149,6 +149,7 @@ pub type ConnectionMap = Slab<Connection>;
const NUM_CONNECTIONS: usize = 128; const NUM_CONNECTIONS: usize = 128;
const CREATE_CONN_INTERVAL: usize = 2 ^ 18;
pub fn run_socket_thread( pub fn run_socket_thread(
@ -177,8 +178,6 @@ 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 ^ 16;
loop { loop {
poll.poll(&mut events, Some(timeout)) poll.poll(&mut events, Some(timeout))
.expect("failed polling"); .expect("failed polling");