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

Log a warning when client omits User Properties due to packet size over limit #535

Open
MicWalter opened this issue Jul 20, 2022 · 0 comments

Comments

@MicWalter
Copy link
Contributor

Problem or use case

As in accordance with the spec the client omits the User Properties(UP) if adding them would increase the packet size over the allowed limit set by the server. The current problem is that this happens silently and there is no way to inform the user that the UPs were omitted.

One example from spec:

The sender MUST NOT send this property if it would increase the size of the DISCONNECT packet beyond the Maximum Packet Size specified by the receiver [MQTT-3.14.2-4]

Preferred solution or suggestions

Simplest solution: Add a WARN log when the client omits the UPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant