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

KMQTT BROKER - topicAliasMaximum set to 0 even when topicAliasMaximum is set on client. #62

Open
nishankhadka09 opened this issue Sep 3, 2024 · 1 comment

Comments

@nishankhadka09
Copy link

nishankhadka09 commented Sep 3, 2024

connAck packet -

MqttConnAck{reasonCode=SUCCESS, sessionPresent=false, restrictions=MqttConnAckRestrictions{receiveMaximum=1024, maximumPacketSize=32768, topicAliasMaximum=0, maximumQos=EXACTLY_ONCE, retainAvailable=true, wildcardSubscriptionAvailable=true, sharedSubscriptionAvailable=true, subscriptionIdentifiersAvailable=true}}

The topicAliasMaximum is 0 in the connAck message, but the client connection snippet is :

(mqttClient as Mqtt5Client?)?.toAsync()?.connectWith()?.restrictions()
            ?.topicAliasMaximum(65535)?.applyRestrictions()?.cleanStart(true)?.send()

Shouldn't the connAck have topicAliasMaximum of not 0??

Client disconnects once I publish to two or more topics saying - Exception while decoding PUBLISH: topic alias must not be 0

@davidepianca98
Copy link
Owner

Hey thanks for the bug report, I'll look into it as soon as I have time

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

No branches or pull requests

2 participants