5.3.1设备不停的断开重连,是因为我把保留消息关闭的缘故吗?

5.0.25版本正常,使用5.3.1之后设备不停的断线重连,监测了下日志,看到socket关闭原因是不支持保留消息,不支持保留消息设备就会自动断开吗?我想的是不支持可以发送失败,不要让他断线重连,这个是设备层面的事吗?
附日志:

2024-01-18T04:58:59.176352+08:00 [MQTT] syj006@14.212.0.181:58887 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=syj006, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=30, Username=syj006, Password=)
2024-01-18T04:58:59.176566+08:00 [QUERY] syj006@14.212.0.181:58887 msg: mysql_connector_received, connector: emqx_authn_mysql:2, sql: emqx_authn_mysql, state: [pool_name: emqx_authn_mysql:2, prepares: ok, query_templates: [{emqx_authn_mysql,prepstmt}: {[<<“SELECT password_hash, salt,is_superuser FROM tb_mqtt_user where username = ? LIMIT 1”>>],[]}]]
2024-01-18T04:58:59.177475+08:00 [AUTHN] syj006@14.212.0.181:58887 msg: authenticator_result, authenticator: password_based:mysql, result: {ok,#{is_superuser => false}}
2024-01-18T04:58:59.177593+08:00 [AUTHN] syj006@14.212.0.181:58887 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false}}}
2024-01-18T04:58:59.178002+08:00 [BRIDGE] syj006@14.212.0.181:58887 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:58:59.199885+08:00 [MQTT] syj006@14.212.0.181:58887 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-01-18T04:58:59.242774+08:00 [MQTT] syj006@14.212.0.181:58887 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[/get/syj006(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2024-01-18T04:58:59.242928+08:00 [AUTHZ] syj006@14.212.0.181:58887 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: /get/syj006, username: syj006
2024-01-18T04:58:59.243016+08:00 [QUERY] syj006@14.212.0.181:58887 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],[]}]]
2024-01-18T04:58:59.244267+08:00 [SUBSCRIBE] syj006@14.212.0.181:58887 msg: subscribe, sub_id: syj006, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: []], topic: /get/syj006
2024-01-18T04:58:59.244500+08:00 [MQTT] syj006@14.212.0.181:58887 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[0])
2024-01-18T04:58:59.404269+08:00 [MQTT] syj006@14.212.0.181:58887 msg: mqtt_packet_received, packet: PUBLISH(Q0, R1, D0, Topic=/device/syj006/update, PacketId=undefined, Payload={“ver”:“1.0”,“hw”:“1.0”,“model”:“CX-5202E-L”,“ccid”:“corxnet-0001”,“note”:“1050”})
2024-01-18T04:58:59.404390+08:00 [AUTHZ] syj006@14.212.0.181:58887 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: publish, qos: 0, retain: true], topic: /device/syj006/update, username: syj006
2024-01-18T04:58:59.404488+08:00 [QUERY] syj006@14.212.0.181:58887 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],[]}]]
2024-01-18T04:58:59.405276+08:00 [warning] msg: cannot_publish_to_topic, mfa: emqx_channel:process_publish/2(679), peername: 14.212.0.181:58887, clientid: syj006, topic: /device/syj006/update, reason: retain_not_supported
2024-01-18T04:58:59.405613+08:00 [SOCKET] syj006@14.212.0.181:58887 msg: socket_force_closed, reason: retain_not_supported
2024-01-18T04:58:59.405824+08:00 [BRIDGE] syj006@14.212.0.181:58887 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:58:59.415647+08:00 [SOCKET] syj006@14.212.0.181:58887 msg: emqx_connection_terminated, reason: {shutdown,retain_not_supported}
2024-01-18T04:58:59.553386+08:00 [MQTT] syj006@14.212.0.181:58890 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=syj006, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=30, Username=syj006, Password=
)
2024-01-18T04:58:59.553596+08:00 [QUERY] syj006@14.212.0.181:58890 msg: mysql_connector_received, connector: emqx_authn_mysql:2, sql: emqx_authn_mysql, state: [pool_name: emqx_authn_mysql:2, prepares: ok, query_templates: [{emqx_authn_mysql,prepstmt}: {[<<“SELECT password_hash, salt,is_superuser FROM tb_mqtt_user where username = ? LIMIT 1”>>],}]]
2024-01-18T04:58:59.554338+08:00 [AUTHN] syj006@14.212.0.181:58890 msg: authenticator_result, authenticator: password_based:mysql, result: {ok,#{is_superuser => false}}
2024-01-18T04:58:59.554412+08:00 [AUTHN] syj006@14.212.0.181:58890 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false}}}
2024-01-18T04:58:59.554848+08:00 [BRIDGE] syj006@14.212.0.181:58890 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:58:59.595959+08:00 [MQTT] syj006@14.212.0.181:58890 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-01-18T04:58:59.636783+08:00 [MQTT] syj006@14.212.0.181:58890 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[/get/syj006(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2024-01-18T04:58:59.636925+08:00 [AUTHZ] syj006@14.212.0.181:58890 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: /get/syj006, username: syj006
2024-01-18T04:58:59.637005+08:00 [QUERY] syj006@14.212.0.181:58890 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],}]]
2024-01-18T04:58:59.637765+08:00 [SUBSCRIBE] syj006@14.212.0.181:58890 msg: subscribe, sub_id: syj006, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: ], topic: /get/syj006
2024-01-18T04:58:59.637916+08:00 [MQTT] syj006@14.212.0.181:58890 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[0])
2024-01-18T04:58:59.795291+08:00 [MQTT] syj006@14.212.0.181:58890 msg: mqtt_packet_received, packet: PUBLISH(Q0, R1, D0, Topic=/device/syj006/update, PacketId=undefined, Payload={“ver”:“1.0”,“hw”:“1.0”,“model”:“CX-5202E-L”,“ccid”:“corxnet-0001”,“note”:“1050”})
2024-01-18T04:58:59.795416+08:00 [AUTHZ] syj006@14.212.0.181:58890 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: publish, qos: 0, retain: true], topic: /device/syj006/update, username: syj006
2024-01-18T04:58:59.795569+08:00 [QUERY] syj006@14.212.0.181:58890 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],}]]
2024-01-18T04:58:59.796198+08:00 [warning] msg: cannot_publish_to_topic, mfa: emqx_channel:process_publish/2(679), peername: 14.212.0.181:58890, clientid: syj006, topic: /device/syj006/update, reason: retain_not_supported
2024-01-18T04:58:59.796462+08:00 [SOCKET] syj006@14.212.0.181:58890 msg: socket_force_closed, reason: retain_not_supported
2024-01-18T04:58:59.796695+08:00 [BRIDGE] syj006@14.212.0.181:58890 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:58:59.807362+08:00 [SOCKET] syj006@14.212.0.181:58890 msg: emqx_connection_terminated, reason: {shutdown,retain_not_supported}
2024-01-18T04:58:59.922430+08:00 [MQTT] syj006@14.212.0.181:58894 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=syj006, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=30, Username=syj006, Password=)
2024-01-18T04:58:59.922607+08:00 [QUERY] syj006@14.212.0.181:58894 msg: mysql_connector_received, connector: emqx_authn_mysql:2, sql: emqx_authn_mysql, state: [pool_name: emqx_authn_mysql:2, prepares: ok, query_templates: [{emqx_authn_mysql,prepstmt}: {[<<“SELECT password_hash, salt,is_superuser FROM tb_mqtt_user where username = ? LIMIT 1”>>],[]}]]
2024-01-18T04:58:59.923198+08:00 [AUTHN] syj006@14.212.0.181:58894 msg: authenticator_result, authenticator: password_based:mysql, result: {ok,#{is_superuser => false}}
2024-01-18T04:58:59.923263+08:00 [AUTHN] syj006@14.212.0.181:58894 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false}}}
2024-01-18T04:58:59.923646+08:00 [BRIDGE] syj006@14.212.0.181:58894 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:58:59.933847+08:00 [MQTT] syj006@14.212.0.181:58894 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-01-18T04:58:59.975761+08:00 [MQTT] syj006@14.212.0.181:58894 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[/get/syj006(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2024-01-18T04:58:59.975896+08:00 [AUTHZ] syj006@14.212.0.181:58894 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: /get/syj006, username: syj006
2024-01-18T04:58:59.976004+08:00 [QUERY] syj006@14.212.0.181:58894 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],[]}]]
2024-01-18T04:58:59.976685+08:00 [SUBSCRIBE] syj006@14.212.0.181:58894 msg: subscribe, sub_id: syj006, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: []], topic: /get/syj006
2024-01-18T04:58:59.976849+08:00 [MQTT] syj006@14.212.0.181:58894 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[0])
2024-01-18T04:59:00.136533+08:00 [MQTT] syj006@14.212.0.181:58894 msg: mqtt_packet_received, packet: PUBLISH(Q0, R1, D0, Topic=/device/syj006/update, PacketId=undefined, Payload={“ver”:“1.0”,“hw”:“1.0”,“model”:“CX-5202E-L”,“ccid”:“corxnet-0001”,“note”:“1050”})
2024-01-18T04:59:00.136811+08:00 [AUTHZ] syj006@14.212.0.181:58894 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: publish, qos: 0, retain: true], topic: /device/syj006/update, username: syj006
2024-01-18T04:59:00.136931+08:00 [QUERY] syj006@14.212.0.181:58894 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],[]}]]
2024-01-18T04:59:00.137605+08:00 [warning] msg: cannot_publish_to_topic, mfa: emqx_channel:process_publish/2(679), peername: 14.212.0.181:58894, clientid: syj006, topic: /device/syj006/update, reason: retain_not_supported
2024-01-18T04:59:00.137944+08:00 [SOCKET] syj006@14.212.0.181:58894 msg: socket_force_closed, reason: retain_not_supported
2024-01-18T04:59:00.138130+08:00 [BRIDGE] syj006@14.212.0.181:58894 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:59:00.139300+08:00 [SOCKET] syj006@14.212.0.181:58894 msg: emqx_connection_terminated, reason: {shutdown,retain_not_supported}
2024-01-18T04:59:00.266798+08:00 [MQTT] syj006@14.212.0.181:58897 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=syj006, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=30, Username=syj006, Password=
)
2024-01-18T04:59:00.266927+08:00 [QUERY] syj006@14.212.0.181:58897 msg: mysql_connector_received, connector: emqx_authn_mysql:2, sql: emqx_authn_mysql, state: [pool_name: emqx_authn_mysql:2, prepares: ok, query_templates: [{emqx_authn_mysql,prepstmt}: {[<<“SELECT password_hash, salt,is_superuser FROM tb_mqtt_user where username = ? LIMIT 1”>>],}]]
2024-01-18T04:59:00.267492+08:00 [AUTHN] syj006@14.212.0.181:58897 msg: authenticator_result, authenticator: password_based:mysql, result: {ok,#{is_superuser => false}}
2024-01-18T04:59:00.267570+08:00 [AUTHN] syj006@14.212.0.181:58897 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false}}}
2024-01-18T04:59:00.267927+08:00 [BRIDGE] syj006@14.212.0.181:58897 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:59:00.268957+08:00 [MQTT] syj006@14.212.0.181:58897 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-01-18T04:59:00.308264+08:00 [MQTT] syj006@14.212.0.181:58897 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[/get/syj006(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2024-01-18T04:59:00.308373+08:00 [AUTHZ] syj006@14.212.0.181:58897 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: /get/syj006, username: syj006
2024-01-18T04:59:00.308433+08:00 [QUERY] syj006@14.212.0.181:58897 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],}]]
2024-01-18T04:59:00.309120+08:00 [SUBSCRIBE] syj006@14.212.0.181:58897 msg: subscribe, sub_id: syj006, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: ], topic: /get/syj006
2024-01-18T04:59:00.309254+08:00 [MQTT] syj006@14.212.0.181:58897 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[0])
2024-01-18T04:59:00.465812+08:00 [MQTT] syj006@14.212.0.181:58897 msg: mqtt_packet_received, packet: PUBLISH(Q0, R1, D0, Topic=/device/syj006/update, PacketId=undefined, Payload={“ver”:“1.0”,“hw”:“1.0”,“model”:“CX-5202E-L”,“ccid”:“corxnet-0001”,“note”:“1050”})
2024-01-18T04:59:00.465950+08:00 [AUTHZ] syj006@14.212.0.181:58897 msg: authorization_module_nomatch, ipaddr: {14,212,0,181}, module: emqx_authz_client_info, pub_sub: [action_type: publish, qos: 0, retain: true], topic: /device/syj006/update, username: syj006
2024-01-18T04:59:00.466015+08:00 [QUERY] syj006@14.212.0.181:58897 msg: mysql_connector_received, connector: emqx_authz_mysql:1, sql: emqx_authz_mysql, state: [pool_name: emqx_authz_mysql:1, prepares: ok, query_templates: [{emqx_authz_mysql,prepstmt}: {[<<“SELECT action, permission, topic FROM tb_mqtt_acl”>>],}]]
2024-01-18T04:59:00.466732+08:00 [warning] msg: cannot_publish_to_topic, mfa: emqx_channel:process_publish/2(679), peername: 14.212.0.181:58897, clientid: syj006, topic: /device/syj006/update, reason: retain_not_supported
2024-01-18T04:59:00.467039+08:00 [SOCKET] syj006@14.212.0.181:58897 msg: socket_force_closed, reason: retain_not_supported
2024-01-18T04:59:00.467238+08:00 [BRIDGE] syj006@14.212.0.181:58897 msg: bridge_action, bridge_id: {bridge_v2,http,online_WH_D}
2024-01-18T04:59:00.468293+08:00 [SOCKET] syj006@14.212.0.181:58897 msg: emqx_connection_terminated, reason: {shutdown,retain_not_supported}

是的,协议规范

请问后来解决了吗?

我开启了消息保留,依然会出现这个问题,请问怎么解决?详细信息请看

请帮忙看下怎么办