handle all PyopenSSL errors. fixes #3686

This commit is contained in:
Yann Leboulanger 2008-01-23 19:04:35 +00:00
parent 4bb29675a8
commit 3c2a220c65
1 changed files with 2 additions and 1 deletions

View File

@ -790,7 +790,8 @@ class NonBlockingTLS(PlugIn):
try:
self.starttls='in progress'
tcpsock._sslObj.do_handshake()
except (OpenSSL.SSL.WantReadError, OpenSSL.SSL.WantWriteError), e:
# Errors are handeled in _do_receive function
except:
pass
tcpsock._sslObj.setblocking(False)
log.debug("Synchronous handshake completed")