Skip to content

Conversation

@JavaSaBr
Copy link
Owner

@JavaSaBr JavaSaBr commented Dec 29, 2025

#149

Update implementation of MQTT session lifecycle, part 1:

  1. Split sessions states in InMemorySessionService: [active sessions, expirable, not expirable)
  2. Update creating/storing/restoring sessions implementation to avoid any race conditions
  3. Update ConnectInMqttMessage to follow specs: update reading main fields, properties, will properties
    and add validation.
  4. Update default session expiry interval: No any defaults on the server side (dropped the property), for MQTT 3.1.1 default is infinity, for MQTT 5.0 default is 0

@JavaSaBr JavaSaBr requested a review from crazyrokr December 29, 2025 19:33
@JavaSaBr JavaSaBr self-assigned this Dec 29, 2025
@JavaSaBr JavaSaBr added the core label Dec 29, 2025
…-mqtt-session-live-cycle

# Conflicts:
#	application/src/test/groovy/javasabr/mqtt/broker/application/PublishRetryTest.groovy
@github-actions
Copy link

github-actions bot commented Dec 29, 2025

@crazyrokr crazyrokr linked an issue Jan 3, 2026 that may be closed by this pull request
Copy link
Collaborator

@crazyrokr crazyrokr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please increse test coverage

@JavaSaBr JavaSaBr merged commit 3f19617 into develop Jan 7, 2026
6 checks passed
@JavaSaBr JavaSaBr deleted the feature/149-update-mqtt-session-live-cycle branch January 7, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update MQTT session live cycle

3 participants