Skip to content

Commit

Permalink
Fix timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkht committed Dec 8, 2021
1 parent f746b0f commit 2ae3ce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DSCR_Application.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# RootModule = ''

# このモジュールのバージョン番号です。
ModuleVersion = '4.0.1'
ModuleVersion = '4.0.2'

# サポートされている PSEditions
# CompatiblePSEditions = @()
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/cApplication/cApplication.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2ae3ce0

Please sign in to comment.