mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http_load_test: use longer poll timeout, adjust conn creation
This commit is contained in:
parent
b9e875ad90
commit
3eb18fc973
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue