Module: check_mk
Branch: master
Commit: 0ad179592ce495d849e9c4eca80430f117f270bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ad179592ce495…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Dec 12 17:20:58 2014 +0100
#1661 FIX mknotifyd: improved performance when receiving forwarded notifications
---
.werks/1661 | 10 ++++++++++
ChangeLog | 3 +++
doc/treasures/mknotifyd | 4 ++--
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/1661 b/.werks/1661
new file mode 100644
index 0000000..f85bff2
--- /dev/null
+++ b/.werks/1661
@@ -0,0 +1,10 @@
+Title: mknotifyd: improved performance when receiving forwarded notifications
+Level: 1
+Component: notifications
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418401218
+
+
diff --git a/ChangeLog b/ChangeLog
index 634aaa9..f61ded8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,9 @@
* 1760 Added search form to manual checks page
* 1761 FIX: Ruleset search is now consistent for host & serviceparameters and
manual checks
+ Notifications:
+ * 1661 FIX: mknotifyd: improved performance when receiving forwarded notifications
+
1.2.6b1:
Core & Setup:
diff --git a/doc/treasures/mknotifyd b/doc/treasures/mknotifyd
index f549e69..69925b7 100755
--- a/doc/treasures/mknotifyd
+++ b/doc/treasures/mknotifyd
@@ -234,7 +234,7 @@ class TcpServer:
handled_connections = 0 # Debug info
while not self._should_terminate:
- readable = select.select([self._tcp_socket], [], [], 0.5)[0]
+ readable = select.select([self._tcp_socket], [], [], 0.2)[0]
for s in readable:
client_data = ""
chunk_count = 0
@@ -242,7 +242,7 @@ class TcpServer:
from_name = "%s:%s" % addr_info
while True:
try:
- data_ready = select.select([client_socket], [], [], 2)[0]
+ data_ready = select.select([client_socket], [], [], 0.2)[0]
if data_ready:
chunk = client_socket.recv(8192)
if not chunk: