mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-22 00:01:06 +00:00
fix: allow slow server shutdowns
This commit is contained in:
+6
-1
@@ -11,7 +11,7 @@ pub const SESSION_ENV_VAR: &str = "HERDR_SESSION";
|
||||
pub const DEFAULT_SESSION_NAME: &str = "default";
|
||||
|
||||
const MAX_SESSION_NAME_LEN: usize = 64;
|
||||
const STOP_WAIT_TIMEOUT: Duration = Duration::from_secs(2);
|
||||
const STOP_WAIT_TIMEOUT: Duration = Duration::from_secs(15);
|
||||
const STOP_WAIT_POLL: Duration = Duration::from_millis(25);
|
||||
const MIN_SOCKET_TIMEOUT: Duration = Duration::from_millis(1);
|
||||
|
||||
@@ -494,6 +494,11 @@ mod tests {
|
||||
(client, server, path)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn stop_wait_timeout_allows_slow_graceful_shutdown() {
|
||||
assert_eq!(STOP_WAIT_TIMEOUT, Duration::from_secs(15));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn stop_request_errors_wait_for_socket_state() {
|
||||
for kind in [
|
||||
|
||||
Reference in New Issue
Block a user