1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 01:39:33 +00: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.
///
/// 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
}