Module: check_mk
Branch: master
Commit: bc1952de4ebe526885cfefcfead0575eacc02083
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bc1952de4ebe52…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Apr 18 14:47:36 2016 +0200
Make status socket handling more robust by using a timeout.
---
bin/mkeventd | 1 +
1 file changed, 1 insertion(+)
diff --git a/bin/mkeventd b/bin/mkeventd
index 90bec36..0ec60c5 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -2515,6 +2515,7 @@ class StatusServer:
readable = select.select(listen_list, [], [], 0.2)[0]
for s in readable:
client_socket, addr_info = s.accept()
+ client_socket.settimeout(3)
before = time.time()
g_perfcounters.count("connects")
if addr_info: