diff --git a/src/class_receiveDataThread.py b/src/class_receiveDataThread.py index b7bc50ad..6e592304 100644 --- a/src/class_receiveDataThread.py +++ b/src/class_receiveDataThread.py @@ -318,6 +318,8 @@ class receiveDataThread(threading.Thread): logger.error("SSL socket handhake failed, shutting down connection", exc_info=True) self.sendDataThreadQueue.put((0, 'shutdown','tls handshake fail')) 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 self.sendDataThreadQueue.put((0, 'connectionIsOrWasFullyEstablished', (self.services, self.sslSock)))