spawn handshake async task to avoid blocking

This commit is contained in:
Jun Kurihara 2022-07-23 14:59:31 +09:00
commit 01a13d0168
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 40 additions and 31 deletions

View file

@ -4,9 +4,9 @@ pub const LISTEN_ADDRESSES_V6: &[&str] = &["[::]"];
// pub const HTTPS_LISTEN_PORT: u16 = 8443;
pub const PROXY_TIMEOUT_SEC: u64 = 60;
pub const UPSTREAM_TIMEOUT_SEC: u64 = 60;
pub const TLS_HANDSHAKE_TIMEOUT_SEC: u64 = 3;
pub const MAX_CLIENTS: usize = 512;
pub const MAX_CONCURRENT_STREAMS: u32 = 64;
// #[cfg(feature = "tls")]
pub const CERTS_WATCH_DELAY_SECS: u32 = 60;
// #[cfg(feature = "http3")]