mirror of
https://github.com/actix/actix-web.git
synced 2024-11-26 03:21:08 +00:00
use 5 seconds keep-alive timer by default
This commit is contained in:
parent
d65c72b44d
commit
9d1eefc38f
2 changed files with 6 additions and 2 deletions
|
@ -6,6 +6,10 @@
|
|||
|
||||
* Use server `Keep-Alive` setting as slow request timeout.
|
||||
|
||||
### Changed
|
||||
|
||||
* Use 5 seconds keep-alive timer by default.
|
||||
|
||||
|
||||
## [0.7.7] - 2018-09-11
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ where
|
|||
factory: Arc::new(f),
|
||||
host: None,
|
||||
backlog: 2048,
|
||||
keep_alive: KeepAlive::Os,
|
||||
keep_alive: KeepAlive::Timeout(5),
|
||||
shutdown_timeout: 30,
|
||||
exit: false,
|
||||
no_http2: false,
|
||||
|
@ -131,7 +131,7 @@ where
|
|||
|
||||
/// Set server keep-alive setting.
|
||||
///
|
||||
/// By default keep alive is set to a `Os`.
|
||||
/// By default keep alive is set to a 5 seconds.
|
||||
pub fn keep_alive<T: Into<KeepAlive>>(mut self, val: T) -> Self {
|
||||
self.keep_alive = val.into();
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue