Set SSL socket to blocking
- otherwise the error handling gets too complicated
This commit is contained in:
parent
6b65dfeeec
commit
8515f9a9fc
|
@ -318,6 +318,8 @@ class receiveDataThread(threading.Thread):
|
||||||
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'))
|
||||||
return
|
return
|
||||||
|
# SSL in the background should be blocking, otherwise the error handling is difficult
|
||||||
|
self.sslSock.settimeout(None)
|
||||||
# Command the corresponding sendDataThread to set its own connectionIsOrWasFullyEstablished variable to True also
|
# Command the corresponding sendDataThread to set its own connectionIsOrWasFullyEstablished variable to True also
|
||||||
self.sendDataThreadQueue.put((0, 'connectionIsOrWasFullyEstablished', (self.services, self.sslSock)))
|
self.sendDataThreadQueue.put((0, 'connectionIsOrWasFullyEstablished', (self.services, self.sslSock)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user