From a3be0c3cc39f9c1b62765cb0a3af7790ea1e0939 Mon Sep 17 00:00:00 2001 From: Manel Montilla Date: Fri, 8 Dec 2023 11:27:38 +0100 Subject: [PATCH] wrustatic/src/main.rs: increase wrustatic timeouts --- wrustatic/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrustatic/src/main.rs b/wrustatic/src/main.rs index 08de8f0..f5b2c11 100644 --- a/wrustatic/src/main.rs +++ b/wrustatic/src/main.rs @@ -45,8 +45,8 @@ fn main() { log_middleware(Box::new(move |request| serve_static(&dir, request))); routes.add("/", http::HttpMethod::GET, serve_dir); let timeouts = Timeouts { - write_response_timeout: Duration::from_secs(60), - read_request_timeout: Duration::from_secs(60), + write_response_timeout: Duration::from_secs(10), + read_request_timeout: Duration::from_secs(10), }; let mut server = Server::from_timeouts(timeouts); let running = match cli.tls_cert {