refactor h3 handling
This commit is contained in:
parent
c3c6d4f4fd
commit
f2a341e198
4 changed files with 37 additions and 30 deletions
|
|
@ -2,12 +2,12 @@ pub const LISTEN_ADDRESSES_V4: &[&str] = &["0.0.0.0"];
|
|||
pub const LISTEN_ADDRESSES_V6: &[&str] = &["[::]"];
|
||||
// pub const HTTP_LISTEN_PORT: u16 = 8080;
|
||||
// pub const HTTPS_LISTEN_PORT: u16 = 8443;
|
||||
pub const PROXY_TIMEOUT_SEC: u64 = 10;
|
||||
pub const UPSTREAM_TIMEOUT_SEC: u64 = 8;
|
||||
pub const PROXY_TIMEOUT_SEC: u64 = 60;
|
||||
pub const UPSTREAM_TIMEOUT_SEC: u64 = 60;
|
||||
pub const MAX_CLIENTS: usize = 512;
|
||||
pub const MAX_CONCURRENT_STREAMS: u32 = 16;
|
||||
pub const MAX_CONCURRENT_STREAMS: u32 = 32;
|
||||
// #[cfg(feature = "tls")]
|
||||
pub const CERTS_WATCH_DELAY_SECS: u32 = 10;
|
||||
pub const CERTS_WATCH_DELAY_SECS: u32 = 30;
|
||||
|
||||
#[cfg(feature = "h3")]
|
||||
pub const H3_ALT_SVC_MAX_AGE: u32 = 60;
|
||||
pub const H3_ALT_SVC_MAX_AGE: u32 = 120;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue