Module: check_mk
Branch: master
Commit: 60b93ac3dd03d0cf839733b9f9cc059b3527bcb6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60b93ac3dd03d0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Nov 17 15:56:14 2014 +0100
liveproxyd: try to avoid 100% CPU situation where errno is not defined
---
doc/treasures/liveproxy/liveproxyd | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/treasures/liveproxy/liveproxyd b/doc/treasures/liveproxy/liveproxyd
index afc4ff6..db0f64a 100755
--- a/doc/treasures/liveproxy/liveproxyd
+++ b/doc/treasures/liveproxy/liveproxyd
@@ -121,6 +121,11 @@ def initiate_connections():
try:
s.connect(siteconf["socket"])
except socket.error, e:
+ try:
+ errno = e.errno
+ except:
+ errno = None
+
if e.errno != 115: # "Operation now in progress"
sitestate["last_failed_connect"] = time.time()
if opt_debug: