icinga2/lib
Yonas Habteab 3af7cfe2ec JsonRpcConnection: Don't drop client from cache prematurely
PR #7445 incorrectly assumed that a peer that had already disconnected
and never reconnected was due to the endpoint client being dropped after
a successful socket shutdown. However, the issue at that time was that
there was not a single timeout guards that could cancel the `async_shutdown`
call, petentially blocking indefinetely. Although removing the client from
cache early might have allowed the endpoint to reconnect, it did not
resolve the underlying problem. Now that we have a proper cancellation
timeout, we can wait until the currently used socket is fully closed
before dropping the client from our cache. When our socket termination
works reliably, the `ApiListener` reconnect timer should attempt to
reconnect this endpoint after the next tick. Additionally, we now have
logs both for before and after socket termination, which may help
identify if it is hanging somewhere in between.
2025-01-08 16:30:36 +01:00
..
base Document Timeout 2025-01-07 18:20:54 +01:00
checker Explicitly stop started timers and wait for them 2023-04-14 14:52:04 +02:00
cli Merge pull request #7799 from Icinga/bugfix/file-end 2023-08-25 11:06:19 +02:00
compat Explicitly stop started timers and wait for them 2023-04-14 14:52:04 +02:00
config ConfigItem::CommitNewItems(): pre-sort types by their load dependencies once 2024-09-20 16:18:12 +02:00
db_ido Update object#config_hash after all relations queries 2024-05-22 13:39:30 +02:00
db_ido_mysql Explicitly stop started timers and wait for them 2023-04-14 14:52:04 +02:00
db_ido_pgsql Explicitly stop started timers and wait for them 2023-04-14 14:52:04 +02:00
icinga Merge pull request #9861 from ymartin-ovh/issue-9752 2025-01-07 14:12:03 +01:00
icingadb Move Timeout instances from heap to stack 2025-01-07 18:20:50 +01:00
livestatus Centralise default icinga.* and env.* macros 2023-02-17 15:33:36 +01:00
methods Move Timeout instances from heap to stack 2025-01-07 18:20:50 +01:00
mysql_shim IDO MySQL: explicitly use latin1 2022-03-31 15:04:45 +02:00
notification Explicitly stop started timers and wait for them 2023-04-14 14:52:04 +02:00
perfdata Add closing quotationmarks in Validator for influxdb writer config 2024-09-25 13:03:00 +02:00
pgsql_shim Replace Copyright header with a short version, part II 2019-02-25 15:09:36 +01:00
remote JsonRpcConnection: Don't drop client from cache prematurely 2025-01-08 16:30:36 +01:00
CMakeLists.txt Rename ICINGA2_WITH_REDIS to ICINGA2_WITH_ICINGADB 2019-11-02 14:00:24 +01:00