refactor: reconsider http read header timeouts

This commit is contained in:
Jun Kurihara 2024-01-23 02:29:05 +09:00
commit 8081eb9f92
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 22 additions and 7 deletions

View file

@ -12,7 +12,7 @@ pub const MAX_CONCURRENT_STREAMS: u32 = 64;
pub const CERTS_WATCH_DELAY_SECS: u32 = 60;
pub const LOAD_CERTS_ONLY_WHEN_UPDATED: bool = true;
pub const CONNECTION_TIMEOUT_SEC: u64 = 30; // timeout to serve a connection. this might limits the max length of response.
pub const CONNECTION_TIMEOUT_SEC: u64 = 60; // timeout to serve a connection, total time of receive request, serve, and send response. this might limits the max length of response.
// #[cfg(feature = "http3")]
// pub const H3_RESPONSE_BUF_SIZE: usize = 65_536; // 64KB