1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-18 05:41:50 +01:00

HttpServer::shutdown_timeout u16 to u64 (#849)

Increase maximum graceful shutdown time from 18 hours.

For issue #848.
This commit is contained in:
Herbert Jones 2019-05-18 12:50:35 -05:00 committed by Nikolay Kim
parent 0dda4b06ea
commit e857ab1f81

View File

@ -207,7 +207,7 @@ where
/// dropped. /// dropped.
/// ///
/// By default shutdown timeout sets to 30 seconds. /// 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.builder = Some(self.builder.take().unwrap().shutdown_timeout(sec));
self self
} }