File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ function New-ModuleFastClient {
458458 $httpClient = [HttpClient ]::new($httpHandler )
459459 $httpClient.BaseAddress = $Source
460460 # 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 )
462462
463463 # If a credential was provided, use it as a basic auth credential
464464 if ($Credential ) {
@@ -884,7 +884,8 @@ function Install-ModuleFastHelper {
884884 [Parameter (Mandatory )][CancellationToken ]$CancellationToken ,
885885 [HttpClient ]$HttpClient ,
886886 [switch ]$Update ,
887- [int ]$ThrottleLimit
887+ [int ]$ThrottleLimit ,
888+ [int ]$Timeout = 30
888889 )
889890 BEGIN {
890891 # 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