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

Fixes QoS 2 persistence provider, Blob-based state persistence provid… #38

Merged
merged 1 commit into from
Mar 12, 2016

Conversation

nayato
Copy link
Member

@nayato nayato commented Mar 12, 2016

…er, SequenceNumber -> Packet Id conversion

Motivation:
Fix issues with Azure Storage-based persistence providers and sequence number conversion logic

Modifications:

  • Azure Table QoS 2 persistence provider uses proper query API to retrieve only relevant row
  • QoS 2 persistence provider API is modified to work with SequenceNumber instead of MessageId
    -Azure Blob session state persistence provider is modified to update ETag value on in-memory session state object to allow saving it later on without any issue.
  • 14 least significant bits are used when converting SequenceNumber into PacketId
  • SequenceNumber type is changed to ulong.

Result:

  • QoS 2 works
  • multiple SUBSCRIBE / UNSUBSCRIBE requests work within a single connection lifetime
  • generated Packet Id is conformant with MQTT spec

@nayato
Copy link
Member Author

nayato commented Mar 12, 2016

@manusr, pls take a look.

…er, SequenceNumber -> Packet Id conversion

Motivation:
Fix issues with Azure Storage-based persistence providers and sequence number conversion logic

Modifications:
- Azure Table QoS 2 persistence provider uses proper query API to retrieve only relevant row
- QoS 2 persistence provider API is modified to work with SequenceNumber instead of MessageId
-Azure Blob session state persistence provider is modified to update ETag value on in-memory session state object to allow saving it later on without any issue.
- 14 least significant bits are used when converting SequenceNumber into PacketId
- SequenceNumber type is changed to ulong.

Result:
- QoS 2 works
- multiple SUBSCRIBE / UNSUBSCRIBE requests work within a single connection lifetime
- generated Packet Id  is conformant with MQTT spec
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.

None yet

1 participant