Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] PUBACK sent after disconnect on publish

Benjamin Cabé <contact@xxxxxxxxxxxxxxxxx> writes:

> mosquitto_publish() is asynchronous: having it return MOSQ_ERR_SUCCESS simply
> means that the publication of the message has properly been passed to the
> Mosquitto thread.
> You should use the publish callback to check/wait for message delivery.
>
> See similar question here: https://stackoverflow.com/q/60050736/1051634

Perfectly fair, but it seems to me that the broker not publishing
something because of a write error on puback is not right.  Maybe I am
off base w.r.t. to the spec and that is intended, though.



Back to the top