Module: check_mk
Branch: master
Commit: 49cda149411558385eebfb21140a3c7bd467deaf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49cda149411558…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 11 11:30:25 2017 +0200
Fixed test code from last commit
Change-Id: I6804447ca73be3166f07a30878f9856444fa86c0
---
bin/mkeventd | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/mkeventd b/bin/mkeventd
index a8461bf..3051cea 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -273,7 +273,7 @@ def open_logfile():
def drain_pipe(pipe):
while True:
try:
- readable = select.select([ pipe ], [], [], 10)[0]
+ readable = select.select([ pipe ], [], [], 0.1)[0]
except select.error, e:
if e[0] == errno.EINTR:
continue
@@ -1555,7 +1555,7 @@ class EventServer:
select_timeout = 1
while True:
try:
- readable = select.select(listen_list + client_sockets.keys(), [], [],
10)[0]
+ readable = select.select(listen_list + client_sockets.keys(), [], [],
select_timeout)[0]
except select.error, e:
if e[0] == errno.EINTR:
continue
@@ -2985,7 +2985,7 @@ class StatusServer:
listen_list.append(self._tcp_socket)
try:
- readable = select.select(listen_list, [], [], 10)[0]
+ readable = select.select(listen_list, [], [], 0.2)[0]
except select.error, e:
if e[0] == errno.EINTR:
continue