Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Expand bridge with Session Expiry Interval (MQTT 5.0) #2980

Open
JSchy65 opened this issue Jan 17, 2024 · 0 comments
Open

Comments

@JSchy65
Copy link

JSchy65 commented Jan 17, 2024

The MQTT 5.0 specification defines in 3.1.2.11.2 the Session Expiry Interval for the CONNECT properties.

Actual (2.0.18), the Mosquitto Bridge sends no Session Expiry Interval value within the CONNECT Properties.

MQTT 5.0 spec:
"If the Session Expiry Interval is absent the value 0 is used. If it is set to 0, or is absent, the Session ends when the Network Connection is closed."

If the Session Expiry Interval is not sent, that leads to loos of messages in case of communication breakdown, because the broker where the connect was made to, will remove all messages in that case. That behaviour is described in issue #2793.

In my opinion, without the implementation of the Session Expiry Interval for the CONNECT, the use of the Mosquitto Bridge with MQTT 5.0 in a remote scenario, where the both MQTT brokers are connected e.g. via internet and where you have to expect communication breaks, is not possible in a meaningful way, because lots of messages will be lost in case of communication breakdown.

See also:
#1632
#2424

MQTT 5.0 see:
https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant