winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e58bc985d677ab34d77e6f82785e1408bf245781
parent e03eb11c81fc1c559ac01572d00c5ea58bb03974
Author: Yash <yashwanthguduru@gmail.com>
Date:   Thu, 17 Jun 2021 17:47:09 +0100

Added "doProgressTimeoutInSeconds" Setting (#1174)

* Added "doProgressTimeoutInSeconds" Setting

Added the "doProgressTimeoutInSeconds'' setting which is used to setup minimum, maximum timeout period before the fallback.

* Changed the default value for the timeout

Changed to default values for the timeout to 60 seconds as advised.

* Update settings.schema.0.2.json

Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>
Diffstat:
Mdoc/Settings.md | 5++++-
Mschemas/JSON/settings/settings.schema.0.2.json | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/Settings.md b/doc/Settings.md @@ -105,9 +105,12 @@ The `downloader` setting controls which code is used when downloading packages. `wininet` uses the [WinINet](https://docs.microsoft.com/en-us/windows/win32/wininet/about-wininet) APIs, while `do` uses the [Delivery Optimization](https://support.microsoft.com/en-us/windows/delivery-optimization-in-windows-10-0656e53c-15f2-90de-a87a-a2172c94cf6d) service. +The `doProgressTimeoutInSeconds` setting updates the number of seconds to wait without progress before fallback. The default number of seconds is 60, minimum is 1 and the maximum is 600. + ```json "network": { - "downloader": "do" + "downloader": "do", + "doProgressTimeoutInSeconds": 60 } ``` diff --git a/schemas/JSON/settings/settings.schema.0.2.json b/schemas/JSON/settings/settings.schema.0.2.json @@ -94,7 +94,7 @@ "doProgressTimeoutInSeconds": { "description": "Number of seconds to wait without progress before fallback", "type": "integer", - "default": 20, + "default": 60, "minimum": 1, "maximum": 600 }