Merge pull request #496 from Icinga:fix/increase_rest_api_default_timeout

Fix: Improves REST-Api default timeout

Improves REST-Api default timeout for internal plugin execution calls from 30s to 120s
This commit is contained in:
Lord Hepipud 2022-03-18 17:42:41 +01:00 committed by GitHub
commit 722b8ba838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#469](https://github.com/Icinga/icinga-powershell-framework/pull/469) Improves plugin doc generator to allow multi-lines in code examples and updates plugin overview as table, adding a short description on what the plugin is for * [#469](https://github.com/Icinga/icinga-powershell-framework/pull/469) Improves plugin doc generator to allow multi-lines in code examples and updates plugin overview as table, adding a short description on what the plugin is for
* [#495](https://github.com/Icinga/icinga-powershell-framework/pull/495) Adds feature to check the sign status for the local Icinga Agent certificate and notifying the user, in case the certificate is not yet signed by the Icinga CA * [#495](https://github.com/Icinga/icinga-powershell-framework/pull/495) Adds feature to check the sign status for the local Icinga Agent certificate and notifying the user, in case the certificate is not yet signed by the Icinga CA
* [#496](https://github.com/Icinga/icinga-powershell-framework/pull/496) Improves REST-Api default timeout for internal plugin execution calls from 30s to 120s
## 1.8.0 (2022-02-08) ## 1.8.0 (2022-02-08)

View file

@ -31,7 +31,7 @@ function Invoke-IcingaInternalServiceCall()
} }
$RestApiPort = 5668; $RestApiPort = 5668;
[int]$Timeout = 30; [int]$Timeout = 120;
$Daemon = $BackgroundDaemons['Start-IcingaWindowsRESTApi']; $Daemon = $BackgroundDaemons['Start-IcingaWindowsRESTApi'];
# Fetch our deamon configuration # Fetch our deamon configuration

View file

@ -51,7 +51,7 @@ function Start-IcingaWindowsRESTApi()
[string]$CertThumbprint = $null, [string]$CertThumbprint = $null,
[bool]$RequireAuth = $FALSE, [bool]$RequireAuth = $FALSE,
[int]$ConcurrentThreads = 5, [int]$ConcurrentThreads = 5,
[int]$Timeout = 30 [int]$Timeout = 120
); );
New-IcingaForWindowsRESTEnvironment -ThreadCount $ConcurrentThreads; New-IcingaForWindowsRESTEnvironment -ThreadCount $ConcurrentThreads;