From 2ae3ce00881f259d447587a4a4306f8733c233ee Mon Sep 17 00:00:00 2001 From: mkht Date: Wed, 8 Dec 2021 10:02:53 +0900 Subject: [PATCH] Fix timeout issue --- DSCR_Application.psd1 | 2 +- DSCResources/cApplication/cApplication.psm1 | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DSCR_Application.psd1 b/DSCR_Application.psd1 index f6c1d8f..ceba446 100644 --- a/DSCR_Application.psd1 +++ b/DSCR_Application.psd1 @@ -12,7 +12,7 @@ # RootModule = '' # このモジュールのバージョン番号です。 - ModuleVersion = '4.0.1' + ModuleVersion = '4.0.2' # サポートされている PSEditions # CompatiblePSEditions = @() diff --git a/DSCResources/cApplication/cApplication.psm1 b/DSCResources/cApplication/cApplication.psm1 index ca03f80..db3d92c 100644 --- a/DSCResources/cApplication/cApplication.psm1 +++ b/DSCResources/cApplication/cApplication.psm1 @@ -622,7 +622,7 @@ function Get-RemoteFile { #Suppress Progress bar for faster download $private:origProgress = $ProgressPreference $ProgressPreference = 'SilentlyContinue' - Invoke-WebRequest -Uri $tempPath.AbsoluteUri -OutFile $OutFile -Credential $Credential -Proxy $Proxy.Address -TimeoutSec $DownloadTimeout -ErrorAction stop + Invoke-WebRequest -Uri $tempPath.AbsoluteUri -OutFile $OutFile -Credential $Credential -Proxy $Proxy.Address -TimeoutSec $TimeoutSec -ErrorAction stop $ProgressPreference = $private:origProgress } else { diff --git a/README.md b/README.md index 6bdb6ef..4cc74cd 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Configuration Example4 --- ## ChangeLog -### 4.0.1 +### 4.0.2 + `TimeoutSec` property is changed to `DownloadTimeout`. + Add `ProcessTimeout` property. + Return `1460` instead of an error when process timeout occurs.