fix: allow slow server shutdowns
This commit is contained in:
parent
4800ff54f0
commit
64de9279e3
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Reference in New Issue