@@ -48,9 +49,12 @@ public class MqttPublishEncodeDecode implements Message2MessageEncodeDecode {
...
@@ -48,9 +49,12 @@ public class MqttPublishEncodeDecode implements Message2MessageEncodeDecode {
requestCommand=RemotingCommand
requestCommand=RemotingCommand
.createRequestCommand(1000,mqttHeader);
.createRequestCommand(1000,mqttHeader);
//invoke copy to generate a new ByteBuf or increase refCnt by 1 by invoking retain() method, because release method is invoked in Message2MessageEncodeDecode.channelRead