use hot_reload to update certificates

This commit is contained in:
Jun Kurihara 2023-07-10 22:57:31 +09:00
commit 6b8b7784f8
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
9 changed files with 399 additions and 312 deletions

View file

@ -8,6 +8,7 @@ pub const TLS_HANDSHAKE_TIMEOUT_SEC: u64 = 15; // default as with firefox browse
pub const MAX_CLIENTS: usize = 512;
pub const MAX_CONCURRENT_STREAMS: u32 = 64;
pub const CERTS_WATCH_DELAY_SECS: u32 = 60;
pub const LOAD_CERTS_ONLY_WHEN_UPDATED: bool = true;
// #[cfg(feature = "http3")]
// pub const H3_RESPONSE_BUF_SIZE: usize = 65_536; // 64KB