Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
那么,如果我发送一条 QoS 为 1 或 2 的 MQTT 消息,并且该消息所属主题的接收者之一处于脱机状态,那么代理会将其保留在队列中多长时间并尝试继续重新发送?
这是消息代理的特定实现细节吗?MQTT 协议本身对此没有任何规定?
正如@knolleary 所说,这完全取决于实现。
mosquitto 代理persistent_client_expiration为您提供了一个选项来自己控制它,但否则会将消息无限期地保持在max_queued_messages.
persistent_client_expiration
max_queued_messages