File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ function New-ModuleFastClient {
458
458
$httpClient = [HttpClient ]::new($httpHandler )
459
459
$httpClient.BaseAddress = $Source
460
460
# When in parallel some operations may take a significant amount of time to return
461
- $httpClient.Timeout = [TimeSpan ]::FromSeconds(30 )
461
+ $httpClient.Timeout = [TimeSpan ]::FromSeconds($Timeout )
462
462
463
463
# If a credential was provided, use it as a basic auth credential
464
464
if ($Credential ) {
@@ -884,7 +884,8 @@ function Install-ModuleFastHelper {
884
884
[Parameter (Mandatory )][CancellationToken ]$CancellationToken ,
885
885
[HttpClient ]$HttpClient ,
886
886
[switch ]$Update ,
887
- [int ]$ThrottleLimit
887
+ [int ]$ThrottleLimit ,
888
+ [int ]$Timeout = 30
888
889
)
889
890
BEGIN {
890
891
# We use this token to cancel the HTTP requests if the user hits ctrl-C without having to dispose of the HttpClient.
You can’t perform that action at this time.
0 commit comments