eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.87k stars 2.36k forks source link

CleanSession false not useable in bridge-mode and MQTTv5 #2424

Open on-delete opened 2 years ago

on-delete commented 2 years ago

Hey,

mosquitto should be MQTTv5 ready, but for the bridge-mode connection with cleanSession=false and mqttv50 protocol version, you cannot give a session expiry interval, which causes brokers to delete the session immediately, because the expiry interval is 0 (as default). Am i missing something or should this be enhanced to set the sessionExpiryInterval also for bridge-mode connections in the CONNECT package?

Tested with mosquitto 2.0.14.

JSchy65 commented 7 months ago

See https://github.com/eclipse/mosquitto/issues/2980 "Feature Request: Expand bridge with Session Expiry Interval (MQTT 5.0)"