cloudio-project / cloudio-endpoint-python

cloud.iO Python endpoint library/client
MIT License
2 stars 3 forks source link

Connection Thread terminated after reconnection attempt #12

Closed boozo-unlimited closed 6 years ago

boozo-unlimited commented 6 years ago

Got following error in logs:

Feb 08 09:19:43 gibscom07 sh[2828]: ciphers=None)      # None, 'ALL', 'TLSv1.2', 'TLSv1.0'
Feb 08 09:19:43 gibscom07 sh[2828]: File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 706, in tls_set
Feb 08 09:19:43 gibscom07 sh[2828]: self.tls_set_context(context)
Feb 08 09:19:43 gibscom07 sh[2828]: File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 618, in tls_set_context
Feb 08 09:19:43 gibscom07 sh[2828]: raise ValueError('SSL/TLS has already been configured.')
Feb 08 09:19:43 gibscom07 sh[2828]: ValueError: SSL/TLS has already been configured.
Feb 08 09:19:43 gibscom07 sh[2828]: Error during broker connect!

After this error no more connection to cloud gets established.

boozo-unlimited commented 6 years ago

The thread responsible to do a reconnect to the cloud was terminated after an error. Now it continues to run and tries to reconnect.

Fixed in version 0.2.3