mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http load test: increase conn inverval const, move out of fn
This commit is contained in:
parent
6691b77824
commit
47c71376e2
1 changed files with 1 additions and 2 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue