mirror of https://github.com/fafhrd91/actix-web
ameliorate awc timeouts on windows
This commit is contained in:
parent
e39d166a17
commit
3923159c84
|
@ -1,7 +1,8 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
### Fixed
|
||||||
|
* Reduced chance of timeouts on Windows.
|
||||||
|
|
||||||
## 2.0.0-beta.4 - 2020-09-09
|
## 2.0.0-beta.4 - 2020-09-09
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -40,7 +40,14 @@ impl ClientBuilder {
|
||||||
allow_redirects: true,
|
allow_redirects: true,
|
||||||
max_redirects: 10,
|
max_redirects: 10,
|
||||||
headers: HeaderMap::new(),
|
headers: HeaderMap::new(),
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
timeout: Some(Duration::from_secs(5)),
|
timeout: Some(Duration::from_secs(5)),
|
||||||
|
|
||||||
|
// HACK: Issue #1560 - ameliorate connect timeouts from DNS lookups
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
timeout: Some(Duration::from_secs(10)),
|
||||||
|
|
||||||
connector: None,
|
connector: None,
|
||||||
max_http_version: None,
|
max_http_version: None,
|
||||||
stream_window_size: None,
|
stream_window_size: None,
|
||||||
|
|
Loading…
Reference in New Issue