mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
use 5 seconds keep-alive timer by default
This commit is contained in:
parent
d65c72b44d
commit
9d1eefc38f
@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
* Use server `Keep-Alive` setting as slow request timeout.
|
* Use server `Keep-Alive` setting as slow request timeout.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Use 5 seconds keep-alive timer by default.
|
||||||
|
|
||||||
|
|
||||||
## [0.7.7] - 2018-09-11
|
## [0.7.7] - 2018-09-11
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ where
|
|||||||
factory: Arc::new(f),
|
factory: Arc::new(f),
|
||||||
host: None,
|
host: None,
|
||||||
backlog: 2048,
|
backlog: 2048,
|
||||||
keep_alive: KeepAlive::Os,
|
keep_alive: KeepAlive::Timeout(5),
|
||||||
shutdown_timeout: 30,
|
shutdown_timeout: 30,
|
||||||
exit: false,
|
exit: false,
|
||||||
no_http2: false,
|
no_http2: false,
|
||||||
@ -131,7 +131,7 @@ where
|
|||||||
|
|
||||||
/// Set server keep-alive setting.
|
/// 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 {
|
pub fn keep_alive<T: Into<KeepAlive>>(mut self, val: T) -> Self {
|
||||||
self.keep_alive = val.into();
|
self.keep_alive = val.into();
|
||||||
self
|
self
|
||||||
|
Loading…
Reference in New Issue
Block a user