Werk #7164: cmk-update-agent: Add timeout handling for connection to server
Komponente | Agent bakery |
Titel | cmk-update-agent: Add timeout handling for connection to server |
Datum | 18.02.2019 |
Checkmk Edition | Checkmk Enterprise (CEE) |
Checkmk-Version | 1.4.0p39 1.5.0p13 1.6.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
Previously, the connection from the agent updater to the Check_MK Server did not handle timeouts. This could lead to situations where the agent updater would run forever waiting for a response.
This was particularly noticeable when running the agent updater under Windows,
because the agent updater would fail to start over again, showing an error
like copying plugins\cmk-update-agent.exe to temp\cmk-update-agent.exe failed
.
The agent updater now will cancel the connection if it freezes. The timeout
limit is set to 120 seconds. This handling does not limit the overall connection time.
For a detailled explenation have a look at the Timeouts paragraph at the
requests documentation!
Please note: This timeout is only active for connections handled by python-requests.
This fix won't apply if you are running the agent updater using cURL.
(i.e. you are running the Check_MK Agent Updater 1.4 on a Linux/UNIX host and
there is no python-requests module installed.)