ameliorate awc timeouts on windows

This commit is contained in:
Rob Ede 2020-09-10 11:30:08 +01:00
parent e39d166a17
commit 3923159c84
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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,