Skip to content

Commit 4287b2f

Browse files
committed
18956 FIX Fix crash if remote site is not alive
CMK-32626 Change-Id: I863c266a15a9d6ad62182a28a9b910b28ebf951e
1 parent 540420e commit 4287b2f

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.werks/18956.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[//]: # (werk v3)
2+
# Fix crash if remote site is not alive
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-04-09T06:49:06+00:00
7+
version | 2.5.0b4
8+
class | fix
9+
edition | community
10+
component | livestatus
11+
level | 1
12+
compatible | yes
13+
14+
If the Livestatus service on a remote site was not running, the central site encountered a problem during the connection teardown, which led to "Internal Server Errors".
15+
16+
When running liveproxy, this issue did not occur, and the connection teardown proceeded without errors.

packages/cmk-livestatus-client/cmk/livestatus_client/_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def disconnect(self) -> None:
678678
def _close_socket(self) -> None:
679679
if self.socket is not None:
680680
if isinstance(self.socket, ssl.SSLSocket):
681-
with contextlib.suppress(ssl.SSLError):
681+
with contextlib.suppress(ssl.SSLError, OSError):
682682
self.socket = self.socket.unwrap()
683683

684684
with contextlib.suppress(OSError):

0 commit comments

Comments
 (0)