Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Publish immediately after received first publish from broker
Publish immediately after received first publish from broker [message #1826555] Mon, 27 April 2020 05:40
Maciej P is currently offline Maciej PFriend
Messages: 3
Registered: December 2018
Junior Member
Hello guys,

Client was connected and registered on desired topics. When it comes online again it gets all pending messages for him.
I checked with mosquito broker, and it seems that all pending messages are sending at once, and broker waits for each ack. Is it a rule?
Does Broker have to send them at once, or is it possible to send one by one, waiting for ack before sending next packet. Maybe this is just a mosquito implementation, but I can see problem that application will work in a different way with different broker.
I tried to find anything in this matter, but couldn't find any mqtt rule that describes it.

I'm struggling with a scenario, when in the answer for publish, client sends directly to the broker some data. If all messages that are pending, are being sent immediately from the broker, there is no way this approach will work, because we won't get puback from the broker ( I mean we will, maybe, but data which comes from the socket contains next publish messages ). And in the meantime, since we're not processing queue fast enough, broker will send part of messages again, since qos1 it used for them.

So guys, did you have to face this issue in the past? Do you have some information about this case?

Best Regards!
Previous Topic:WiFi network interrupted
Next Topic: Problems with broker mosquitto
Goto Forum:

Current Time: Sun May 09 05:35:50 GMT 2021

Powered by FUDForum. Page generated in 0.02153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top