mirror of
https://github.com/vrc-get/vrc-get.git
synced 2026-06-21 09:58:08 +00:00
Merge pull request #2826 from vrc-get/fix-timeout
chore(gui): extend connect/read timeout to 1 min
This commit is contained in:
commit
5887c5631c
2 changed files with 6 additions and 2 deletions
|
|
@ -26,6 +26,8 @@ The format is based on [Keep a Changelog].
|
|||
- ALCOM now refuses launching project if project is on noexec mount points `#2814`
|
||||
- This would cause problems with several native plugins
|
||||
- Already-added packages are now excluded from the package name suggestions in the Template Editor `#2828`
|
||||
- Extended some timeouts to 1 minute `#2826`
|
||||
- Prevents timeouts in slow DNS environments
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
|
|
|||
|
|
@ -21,8 +21,10 @@ pub fn new_http_client() -> reqwest::Client {
|
|||
env!("CARGO_PKG_HOMEPAGE"),
|
||||
")"
|
||||
))
|
||||
.connect_timeout(std::time::Duration::from_secs(10))
|
||||
.read_timeout(std::time::Duration::from_secs(10))
|
||||
// https://github.com/vrc-get/vrc-get/issues/2653
|
||||
// IDK why but it might take over 10 sec to connect / read
|
||||
.connect_timeout(std::time::Duration::from_secs(60))
|
||||
.read_timeout(std::time::Duration::from_secs(60))
|
||||
.timeout(std::time::Duration::from_secs(10 * 60)) // 10 minutes
|
||||
.build()
|
||||
.expect("building client")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue