From ee60850550466b3dfdb8e8ccf98691863c362d67 Mon Sep 17 00:00:00 2001 From: peigen Date: Mon, 19 Aug 2024 18:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mqtt/client/noear/config/MqttClientProperties.java | 8 ++++---- .../mqtt/server/noear/config/MqttServerProperties.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/starter/mica-mqtt-client-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/client/noear/config/MqttClientProperties.java b/starter/mica-mqtt-client-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/client/noear/config/MqttClientProperties.java index eb657e0f..cb3e6ce0 100644 --- a/starter/mica-mqtt-client-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/client/noear/config/MqttClientProperties.java +++ b/starter/mica-mqtt-client-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/client/noear/config/MqttClientProperties.java @@ -73,13 +73,13 @@ public class MqttClientProperties { */ private Integer timeout; /** - * 接收数据的 buffer size,默认:8k + * 接收数据的 buffer size,默认:8KB */ - private String readBufferSize = "8k"; + private String readBufferSize = "8KB"; /** - * 消息解析最大 bytes 长度,默认:10M + * 消息解析最大 bytes 长度,默认:10MB */ - private String maxBytesInMessage = "10M"; + private String maxBytesInMessage = "10MB"; /** * mqtt 3.1 会校验此参数为 23,为了减少问题设置成了 64 */ diff --git a/starter/mica-mqtt-server-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/server/noear/config/MqttServerProperties.java b/starter/mica-mqtt-server-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/server/noear/config/MqttServerProperties.java index e443af40..08c28e81 100644 --- a/starter/mica-mqtt-server-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/server/noear/config/MqttServerProperties.java +++ b/starter/mica-mqtt-server-solon-plugin/src/main/java/net/dreamlu/iot/mqtt/server/noear/config/MqttServerProperties.java @@ -57,13 +57,13 @@ public class MqttServerProperties { */ private float keepaliveBackoff = 0.75F; /** - * 接收数据的 buffer size,默认:8k + * 接收数据的 buffer size,默认:8KB */ - private String readBufferSize = "8k"; + private String readBufferSize = "8KB"; /** - * 消息解析最大 bytes 长度,默认:10M + * 消息解析最大 bytes 长度,默认:10MB */ - private String maxBytesInMessage = "10M"; + private String maxBytesInMessage = "10MB"; /** * 堆内存和堆外内存 */