diff --git a/CHANGES.md b/CHANGES.md index c0ba7dd26..a96fd3318 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## 0.6.1 (2018-05-xx) + +* Fix connector's default `keep-alive` and `lifetime` settings #212 + ## 0.6.0 (2018-05-08) * Add route scopes #202 diff --git a/MIGRATION.md b/MIGRATION.md index e2da4004d..984f3a3da 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -11,6 +11,17 @@ * `HttpRequest::extensions()` returns read only reference to the request's Extension `HttpRequest::extensions_mut()` returns mutable reference. +* Instead of + + `use actix_web::middleware::{ + CookieSessionBackend, CookieSessionError, RequestSession, + Session, SessionBackend, SessionImpl, SessionStorage};` + + use `actix_web::middleware::session` + + `use actix_web::middleware::session{CookieSessionBackend, CookieSessionError, + RequestSession, Session, SessionBackend, SessionImpl, SessionStorage};` + * `FromRequest::from_request()` accepts mutable reference to a request * `FromRequest::Result` has to implement `Into>` @@ -33,6 +44,9 @@ let q = Query::>::extract(req); ``` +* Websocket operations are implemented as `WsWriter` trait. + you need to use `use actix_web::ws::WsWriter` + ## Migration from 0.4 to 0.5 diff --git a/src/client/connector.rs b/src/client/connector.rs index dea00ea21..e082c9ed5 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -223,8 +223,8 @@ impl Default for ClientConnector { pool: Rc::new(Pool::new(Rc::clone(&_modified))), pool_modified: _modified, connector: builder.build().unwrap(), - conn_lifetime: Duration::from_secs(15), - conn_keep_alive: Duration::from_secs(75), + conn_lifetime: Duration::from_secs(75), + conn_keep_alive: Duration::from_secs(15), limit: 100, limit_per_host: 0, acquired: 0, @@ -243,8 +243,8 @@ impl Default for ClientConnector { subscriber: None, pool: Rc::new(Pool::new(Rc::clone(&_modified))), pool_modified: _modified, - conn_lifetime: Duration::from_secs(15), - conn_keep_alive: Duration::from_secs(75), + conn_lifetime: Duration::from_secs(75), + conn_keep_alive: Duration::from_secs(15), limit: 100, limit_per_host: 0, acquired: 0,