forked from bytebeamio/rumqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Topic alias and message expiry support in broker (bytebeamio#616)
* feat: store properties and expiry in logs * feat: ignore expired messages * fix: checking expired messages * feat: broker handling topic alias * feat: set message expiry interval to received value minus time spent waiting * fix: case when time spent is equal to message expiry interval * feat: broker can set topic alias for clients to use * feat: send disconnet packets to client * feat: using let-else instead of if-let * feat: entry in CHANGELOG * fix: declare topic in outer scope * fix: missing argument for Link * feat: include Reason in disconnection message * feat: handle tenant prefix properly while forwarding, check max_alias explicitly * feat: make broker_topic_alias optional * feat: validate and set topic alias in separate fn * feat: comments regarding last will and storage * feat: extract all broker topic alias related things to separate struct * feat: improve readability for message expiry * feat: typos and todo * feat: ignore connack properties in v4 * feat: rename topic_alias_exists to topic_alias_already_exists
- Loading branch information
Showing
13 changed files
with
375 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ impl ShadowLink { | |
true, | ||
None, | ||
config.dynamic_filters, | ||
None, | ||
)?; | ||
let connection_id = link_rx.id(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.