Less verbose SSL handshake reporting
- if SSL handshake fails, we don't need to stack trace because we know where it's happening. Only report the error string.
This commit is contained in:
parent
5828021903
commit
01a9124b7d
|
@ -271,6 +271,10 @@ class receiveDataThread(threading.Thread):
|
||||||
except ssl.SSLWantWriteError:
|
except ssl.SSLWantWriteError:
|
||||||
logger.debug("Waiting for SSL socket handhake write")
|
logger.debug("Waiting for SSL socket handhake write")
|
||||||
select.select([], [self.sslSock], [], 10)
|
select.select([], [self.sslSock], [], 10)
|
||||||
|
except ssl.SSLError as e:
|
||||||
|
logger.error("SSL socket handhake failed: %s, shutting down connection", str(e))
|
||||||
|
self.sendDataThreadQueue.put((0, 'shutdown','tls handshake fail %s' % (str(e))))
|
||||||
|
return
|
||||||
except:
|
except:
|
||||||
logger.error("SSL socket handhake failed, shutting down connection", exc_info=True)
|
logger.error("SSL socket handhake failed, shutting down connection", exc_info=True)
|
||||||
self.sendDataThreadQueue.put((0, 'shutdown','tls handshake fail'))
|
self.sendDataThreadQueue.put((0, 'shutdown','tls handshake fail'))
|
||||||
|
|
Reference in New Issue
Block a user