Hi all,
My versions:
mosquitto c sourcecode (1.4.11)
raspberry pi (Raspbian Jessy)
OpenSSL 1.0.2j 26 Sep 2016
My target successfully
connects via TLS to the broker and
publishes messages with
qos 2.
After a few messages the MQTT connection stops and reconnects:
[...]
mqtt_log(16): Client MYTARGET sending PUBLISH (d0, q2, r0, m25, 'test/status',
... (75 bytes))
Publish() mosquitto_publish() FAILED mid 25, rc: 14, errno = 71 (Protocol
error)
mqtt_log(16): Client MYTARGET received PUBREC (Mid: 25)
mqtt_log(16): Client MYTARGET sending PUBREL (Mid: 25)
mqtt_log(8): OpenSSL Error: error:1409F07F:SSL routines:ssl3_write_pending:bad
write retry
DisconnectClbk()
Start() infinite loop broken (14).
Reconnect() try reconnect
mqtt_log(16): Client MYTARGET sending CONNECT
Reconnect() successfully reconnected
[...]
The problem occurs more often on a Raspberry with wifi connection (approx
1 in 10), than on the same target with ethernet cable connection (approx 1 in 60).
Any suggestions or tips what I can do or what I can change?
Thanks and best regards
Chris