You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirmed this behavior. It's happening in the underlying C library. I created an issue over there to clarify what's happening and how best to handle it: eclipse-paho/paho.mqtt.c#1193
OK, after testing for a while it really appears that the C client relies on this buffer limit even when the client is connected to the broker. You definitely need at least one slot to even send a message. For sanity sake, internally I'll set a lower limit to make sure you can still send messages while connected if you set this to zero.
But even better than that I expose the ability to enable/disable off-line buffering separate from the size of the buffer. Now there's a CreateOptionsBuilder::send_while_disconnected()
Creating a client with .max_buffered_messages(0) fails to publish a message with a "Max buffered messages" error, even if a connection is established.
Following code:
Produces the following log:
The text was updated successfully, but these errors were encountered: