Skip to content

Uphold server constraints#109

Merged
julian-graf merged 28 commits into
obabec:mainfrom
julian-graf:server-constraints
May 4, 2026
Merged

Uphold server constraints#109
julian-graf merged 28 commits into
obabec:mainfrom
julian-graf:server-constraints

Conversation

@julian-graf
Copy link
Copy Markdown
Collaborator

  • Primarily introduces checks to not cause protocol errors on the following options:
    • prevent SUBSCRIBE packets with shared subscription topic filters when shared subscription available = 0
    • prevent SUBSCRIBE packets with wildcard subscription topic filters when wildcard subscription available = 0
    • prevent SUBSCRIBE packets with subscription identifier when subscription identifiers available = 0
    • prevent PUBLISH packets with QoS > server maximum QoS
    • prevent PUBLISH packets with retain flag set when retain available = 0
  • Introduces NonZero<u16> for topic aliases as topic aliases are not allowed to be 0
  • Replace MqttError::InvalidTopicAlias with the new MqttError::UnsupportedByServer variant
  • Move ConnectInfo into crate::client::event and rename to Connected, delete the crate::client::info module
  • Update & improve documentation

@julian-graf julian-graf force-pushed the server-constraints branch from 35f149f to 514ae27 Compare May 3, 2026 14:52
@julian-graf julian-graf merged commit d2ca25c into obabec:main May 4, 2026
9 of 11 checks passed
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

Successfully merging this pull request may close these issues.

1 participant