Skip to content

The server SHOULD avoid processing duplicates #6

@decadenza

Description

@decadenza

Is your feature request related to a problem? Please describe.
A server SHOULD acknowledge duplicates but process the message only once as per https://datatracker.ietf.org/doc/html/rfc7252#section-4.5

Describe the solution you'd like
An opt-in duplicate flag or function within the window timeframe, so that depending on the application, the server avoids to process multiple times the same message (equal message ID).

Describe alternatives you've considered
N/A

Additional context
This is not a MUST of the protocol specifications, but it may be important for certain applications to avoid duplicates for non-idempotent commands.
Ideally this could become an helper like message.isDuplicate. Storage of the message IDs within the time window is a potential memory concern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions