Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about ensuring message delivery between reconnects #149

Open
yangm97 opened this issue Feb 4, 2022 · 3 comments
Open

Question about ensuring message delivery between reconnects #149

yangm97 opened this issue Feb 4, 2022 · 3 comments

Comments

@yangm97
Copy link

yangm97 commented Feb 4, 2022

I see emqtt once had an automatic reconnect feature but is has been removed. However I haven't found any recommended replacement.

Doing a quick test reveals unexpected disconnects (for instance, tcp_closed) results in a exit from the emqtt client process, which propagates to my process.

I could probably trap that exit signal and issue a reconnect from my proccess but then what about messages in flight?

Suppose I want to ensure QoS 1-2 messages got sent, do I need to build a queue within my process state and pop items from that queue only after receiving a PUBACK?

@qzhuyan
Copy link
Contributor

qzhuyan commented Mar 8, 2022

@yangm97 I have added reconnects in this PR with option {reconnect, true}
#143

Have you tried that ?

@yangm97
Copy link
Author

yangm97 commented Apr 5, 2022

@qzhuyan nope, if I remember correctly I used the latest release available at that time.

@qzhuyan
Copy link
Contributor

qzhuyan commented Apr 22, 2022

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants