When the client disconnects from the broker (and never reconnects, a different problem), subsquent calls to mosquitto_publish_v5() (and I'm guessing also mosquitto_publish()) will return MOSQ_ERR_ERRNO with an errno value of 11, EAGAIN.
However, the API documentation for mosquitto_publish_v5() does not list MOSQ_ERR_ERRNO as a possible return value.
Using mosquitto.dll 2.0.15 for Windows.
When the client disconnects from the broker (and never reconnects, a different problem), subsquent calls to mosquitto_publish_v5() (and I'm guessing also mosquitto_publish()) will return MOSQ_ERR_ERRNO with an errno value of 11, EAGAIN.
However, the API documentation for mosquitto_publish_v5() does not list MOSQ_ERR_ERRNO as a possible return value.