From e857ab1f81a537b192fd9074372e246b530dd151 Mon Sep 17 00:00:00 2001 From: Herbert Jones Date: Sat, 18 May 2019 12:50:35 -0500 Subject: [PATCH] HttpServer::shutdown_timeout u16 to u64 (#849) Increase maximum graceful shutdown time from 18 hours. For issue #848. --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index 3cb139976..629fc8bdd 100644 --- a/src/server.rs +++ b/src/server.rs @@ -207,7 +207,7 @@ where /// dropped. /// /// By default shutdown timeout sets to 30 seconds. - pub fn shutdown_timeout(mut self, sec: u16) -> Self { + pub fn shutdown_timeout(mut self, sec: u64) -> Self { self.builder = Some(self.builder.take().unwrap().shutdown_timeout(sec)); self }