mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_http: config: set poll timeout in microseconds, default to 10000
This commit is contained in:
parent
6471e4a8a9
commit
19ee41eb72
2 changed files with 22 additions and 16 deletions
|
|
@ -30,7 +30,7 @@ pub struct NetworkConfig {
|
|||
#[serde(flatten)]
|
||||
pub tls: TlsConfig,
|
||||
pub poll_event_capacity: usize,
|
||||
pub poll_timeout_milliseconds: u64,
|
||||
pub poll_timeout_microseconds: u64,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ impl Default for NetworkConfig {
|
|||
ipv6_only: false,
|
||||
tls: TlsConfig::default(),
|
||||
poll_event_capacity: 4096,
|
||||
poll_timeout_milliseconds: 50,
|
||||
poll_timeout_microseconds: 10_000,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue