Closed tekjar closed 8 years ago
I fixed this. But it's not whole doing after reconnection. it needs to resend all unacknowledged messages.
Thanks for this library. I just did another test.
My observations:
Client is not receiving any messages after broker is down (crashed) because all the broker state is gone (persistence not enabled in mosquitto config). I tested client with below config and persitence enabled in broker.
opts.set_client_id("xxxxxx");
opts.set_clean_session(false);
Now I'm receiving messages again after reconnections.
Slight modification to subscribe example in mqttc
Start
rust-mq
clientKeep publishing with
mosquitto_pub
Take down the broker and bring it up again.
rust-mq
client won't be receiving publishes anymore