Skip to content

Commit 87c1da2

Browse files
committed
fix topic alias max property in connection packet
1 parent 20acb5e commit 87c1da2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/ss/mqtt/broker/network/packet/in/ConnectAckInPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ protected void applyProperty(@NotNull PacketProperty property, long value) {
370370
MqttPropertyConstants.SERVER_KEEP_ALIVE_MAX
371371
);
372372
break;
373-
case TOPIC_ALIAS:
373+
case TOPIC_ALIAS_MAXIMUM:
374374
topicAliasMaximum = NumberUtils.validate(
375375
(int) value,
376376
MqttPropertyConstants.TOPIC_ALIAS_MIN,

src/main/java/com/ss/mqtt/broker/network/packet/out/ConnectAck5OutPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class ConnectAck5OutPacket extends ConnectAck311OutPacket {
116116
on this connection. If Topic Alias Maximum is absent or 0, the Client MUST NOT send any Topic Aliases on
117117
to the Server
118118
*/
119-
PacketProperty.TOPIC_ALIAS,
119+
PacketProperty.TOPIC_ALIAS_MAXIMUM,
120120
/*
121121
Followed by the UTF-8 Encoded String representing the reason associated with this response. This
122122
Reason String is a human readable string designed for diagnostics and SHOULD NOT be parsed by the

0 commit comments

Comments
 (0)