Skip to content

Commit

Permalink
wrustatic/src/main.rs: increase wrustatic timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
manelmontilla committed Dec 8, 2023
1 parent fc9fdf6 commit a3be0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrustatic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a3be0c3

Please sign in to comment.