summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-03-21 14:50:01 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-03-21 14:50:01 +0000
commitad4bc6e79d986b019d7d6a29ce864b792da5d658 (patch)
tree03e83c55eee938fcb2850544c1baaedaf894d10b
parent80a1ff44319b53f43ca664609442467caeab414b (diff)
downloadbcfg2-ad4bc6e79d986b019d7d6a29ce864b792da5d658.tar.gz
bcfg2-ad4bc6e79d986b019d7d6a29ce864b792da5d658.tar.bz2
bcfg2-ad4bc6e79d986b019d7d6a29ce864b792da5d658.zip
Improve error handling for ssl handshakes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2978 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Component.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py
index 7e3b9c724..5aebbcbdc 100644
--- a/src/lib/Server/Component.py
+++ b/src/lib/Server/Component.py
@@ -71,12 +71,10 @@ class TLSServer(Bcfg2.tlslite.api.TLSSocketServerMixIn,
sessionCache=self.sc)
tlsConnection.ignoreAbruptClose = True
return True
- except Bcfg2.tlslite.errors.TLSError, socket.error:
- print "Handshake failure:", str(error)
+ except Bcfg2.tlslite.errors.TLSError, error:
+ return False
+ except socket.error:
return False
- except Exception, e:
- print "got", e
- raise
class Component(TLSServer,
SimpleXMLRPCServer.SimpleXMLRPCDispatcher):