Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 6681a623915cf629aca5395df45a921ae1528a0f
https://github.com/tribe29/checkmk/commit/6681a623915cf629aca5395df45a921ae…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-10-01 (Tue, 01 Oct 2019)
Changed paths:
A .werks/10245
Log Message:
-----------
10245 FIX Fix thread leak triggered by unstable site connections
The livestatus proxy normally keeps open several connections to the remote
livestatus server and uses them in the moment a livestatus query is made
from the central site to the remote site.
In the moment a site is not reachable anymore, for example because of a
network connection issue, this is detected by one of these connections.
The site is then terminating all other connections and trying to recover
from this situation by continuously reconnecting to the remote site.
In this situation the livestatus proxy was not cleaning up it's old connection
threads while opening new ones for the new connections. After some time this
could result in "Resource temporarily unavailable" errors in various places or
"can't start new thread" shown in the GUI.
Change-Id: I2111bc849b0a1f47cef065b6fbb4567ccff88d77