|Title||cmk-update-agent: Add timeout handling for connection to server|
|Checkmk Edition||Checkmk Enterprise Edition (CEE)|
|Compatibility||Compatible - no manual interaction needed|
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
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.)