log.error("Can't find associated client, the connection will be closed. remotingChannel={}, MqttMessage={}",remotingChannel.toString(),message.toString());
remotingChannel.close();
...
...
@@ -98,6 +99,7 @@ public class MqttSubscribeMessageHandler implements MessageHandler {
log.warn("Exception was thrown when pushing MQTT message to topic: {}, exception={}",topic,ex.getMessage());
log.warn("Exception was thrown when pushing MQTT message to topic: {}, clientId:{}, exception={}",mqttHeader.getTopicName(),client.getClientId(),ex.getMessage());
}finally{
ReferenceCountUtil.release(message);
}
}else{
log.info("Push message to topic: {} canceled!",topic);
log.info("Push message to topic: {}, clientId:{}, canceled!",mqttHeader.getTopicName(),client.getClientId());