Error:when I use paho.mqtt send message with SSL,sometimes it would be raise error like this: #691
Labels
Status: Available
No one has claimed responsibility for resolving this issue.
Status: More info needed
More information needed from issue author
Traceback (most recent call last):
File "/app/extensions/mqtt_clients.py", line 344, in another_one_publish
msg_info = self.client.publish(topic, payload, qos, retain)
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 1257, in publish
rc = self._send_publish(
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 2693, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 3016, in _packet_queue
return self.loop_write()
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 1577, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 2464, in _packet_write
write_length = self._sock_send(
File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 649, in _sock_send
return self._sock.send(buf)
File "/usr/local/lib/python3.8/dist-packages/gevent/_ssl3.py", line 501, in send
return self._sslobj.write(data)
ssl.SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2410)
PS: If the payload more bigger (or bad network),it would be raise more frequently
The text was updated successfully, but these errors were encountered: