Skip to content
Snippets Groups Projects
Commit 3c2a220c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

handle all PyopenSSL errors. fixes #3686

parent 4bb29675
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment