请问如何处理设备重复上下线导致MQTT 拒绝登录设备

环境信息

  • EMQX 版本:开源5.3.2
  • 操作系统及版本:centos7
  • 其他

问题描述

设备因网络问题,会导致设备频繁的上下线,但是我连接抖动都是关闭的情况下,设备频繁连接被MQTT拒绝连接,请问我该如何设置宽松的网络,不限制设备重复上下线?

报错信息

2024-01-10T13:43:12.823696+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:43:12.824128+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-10T13:44:29.309069+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:44:29.309663+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-10T13:45:49.164315+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:45:49.164988+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-10T13:46:56.134851+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:46:56.135371+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-10T13:48:25.694387+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:48:25.694590+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-10T13:49:34.165956+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-YaKNF, detect_cnt: 10, peer_host: 192.168.50.82, wind_time_in_ms: 60000
2024-01-10T13:49:34.166163+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)

客户端认证

黑名单

连接抖动

你把抖动检查拉长一点。
或者直接关掉。

我已经关闭了连接抖动了,还是会拒绝连接。

关掉后的日志有么,来一份看看,难道还是上面的么。。

路径:/var/lib/emqx/configs
image

路径:/etc/emqx

在Web界面:

哦哦,我明白你已经关掉了,就是想问下,关掉后的ban emqx 日志是怎么样的。

2024-01-11T16:02:28.378882+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:28.379055+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:29.411217+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:29.411411+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:30.458548+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:30.458713+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:31.492045+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:31.492220+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:32.519746+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:32.519918+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:33.684936+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:33.685129+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:34.906128+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:34.906303+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:35.731657+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:35.731831+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:02:36.796858+08:00 [warning] msg: flapping_detected, mfa: emqx_flapping:handle_cast/2(149), clientid: D3HJJU-AcsRS, detect_cnt: 20, peer_host: 192.168.50.82, wind_time_in_ms: 1800000
2024-01-11T16:02:36.797054+08:00 [warning] msg: kick_session_due_to_banned, mfa: emqx_banned:on_banned/1(296)
2024-01-11T16:07:37.954640+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36590, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:37.974124+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36592, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:37.975439+08:00 [error] D3HJJU-AcsRS@192.168.50.82:36590 Handler <<"emqx-resource-app-telemetry-handler">> has failed and has been detached. Class=error, Reason={badkey,matched}, Stacktrace=[{erlang,map_get,[matched,#{}],[{error_info,#{module => erl_erts_errors}}]},{emqx_metrics_worker,idx_metric,4,[{file,"emqx_metrics_worker.erl"},{line,554}]},{emqx_metrics_worker,inc,4,[{file,"emqx_metrics_worker.erl"},{line,243}]},{telemetry,'-execute/3-fun-0-',4,[{file,"telemetry.erl"},{line,160}]},{lists,foreach_1,2,[{file,"lists.erl"},{line,1442}]},{emqx_resource_buffer_worker,async_query,3,[{file,"emqx_resource_buffer_worker.erl"},{line,134}]},{emqx_rule_runtime,do_handle_action,4,[{file,"emqx_rule_runtime.erl"},{line,377}]},{emqx_rule_runtime,handle_action,4,[{file,"emqx_rule_runtime.erl"},{line,326}]},{emqx_rule_runtime,'-handle_action_list/4-lc$^0/1-0-',4,[{file,"emqx_rule_runtime.erl"},{line,321}]},{emqx_rule_runtime,do_apply_rule,3,[{file,"emqx_rule_runtime.erl"},{line,180}]},{emqx_rule_runtime,apply_rule,3,[{file,"emqx_rule_runtime.erl"},{line,72}]},{emqx_rule_runtime,apply_rule_discard_result,3,[{file,"emqx_rule_runtime.erl"},{line,65}]},{emqx_rule_runtime,apply_rules,3,[{file,"emqx_rule_runtime.erl"},{line,61}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run,2,[{file,"emqx_hooks.erl"},{line,172}]},{emqx_channel,ensure_disconnected,2,[{file,"emqx_channel.erl"},{line,2177}]},{emqx_channel,disconnect_and_shutdown,3,[{file,"emqx_channel.erl"},{line,2239}]},{emqx_connection,handle_call,3,[{file,"emqx_connection.erl"},{line,720}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,535}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}], mfa: telemetry:execute/3(172)
2024-01-11T16:07:37.977566+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36594, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:37.980700+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36596, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:37.982757+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36598, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:37.997050+08:00 [error] msg: failed_to_execute, mfa: emqx_hooks:safe_execute/2(215), peername: 192.168.50.82:36600, clientid: D3HJJU-AcsRS, exception: error, failed_call: {emqx_authn_chains,authenticate,[#{clientid => <<"D3HJJU-AcsRS">>,enable_authn => true,is_bridge => false,is_superuser => false,listener => 'tcp:default',mountpoint => undefined,password => <<"4DnN6UfbKg8H">>,peerhost => {192,168,50,82},protocol => mqtt,sockport => 1883,username => <<"2506e6d3217a3cbc376099948f99148a">>,zone => default},ignore]}, reason: badarg, stacktrace: [{ets,lookup,[emqx_authn_chains,'tcp:default'],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_authn_chains,get_authenticators,2,[{file,"emqx_authn_chains.erl"},{line,176}]},{emqx_authn_chains,authenticate,2,[{file,"emqx_authn_chains.erl"},{line,159}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,205}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,185}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,176}]},{emqx_channel,do_authenticate,2,[{file,"emqx_channel.erl"},{line,1696}]},{emqx_channel,handle_in,2,[{file,"emqx_channel.erl"},{line,335}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,840}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,493}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,499}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,455}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,250}]}]
2024-01-11T16:07:48.090227+08:00 [error] msg: action_references_nonexistent_bridges, mfa: emqx_rule_engine:with_parsed_rule/3(490), hint: this rule will be disabled, nonexistent_bridge_ids: #{nonexistent_bridge_ids => [{http,'Device_Messages_WH_D'}]}, rule_id: <<"Device_Messages_WH_D">>
2024-01-11T16:07:48.351553+08:00 [error] msg: authentication_not_initialized, mfa: emqx_authn_chains:handle_call/3(385), configured_provider_types: [{password_based,mysql}], registered_provider_types: [jwt,{password_based,built_in_database},{password_based,http},{password_based,ldap},{password_based,ldap_bind},{password_based,mongodb},{password_based,postgresql},{password_based,redis},{scram,built_in_database}]
2024-01-11T16:07:48.351961+08:00 [error] msg: failed_to_create_authenticator, mfa: emqx_gateway_insta_sup:do_create_authenticator/2(346), chain_name: 'stomp:global', config: #{backend => mysql,database => <<"st_ds">>,enable => true,mechanism => password_based,password => <<"123456">>,password_hash_algorithm => #{name => sha256,salt_position => suffix},pool_size => 8,query => "SELECT password_hash, salt, is_superuser FROM mqtt_user WHERE username = ${username} LIMIT 1",query_timeout => 5000,server => "127.0.0.1:3306",ssl => #{ciphers => [],depth => 10,enable => false,hibernate_after => 5000,log_level => notice,reuse_sessions => true,secure_renegotiate => true,user_lookup_fun => {fun emqx_tls_psk:lookup/3,undefined},verify => verify_peer,versions => ['tlsv1.3','tlsv1.2']},username => <<"root">>}, reason: not_initialized
2024-01-11T16:07:48.352246+08:00 [error] msg: load_gateway_failed, mfa: emqx_gateway_app:load_gateway_by_default/0(101), gateway_name: stomp, reason: {{badmatch,{error,{badauth,not_initialized}}},[{emqx_gateway_insta_sup,init,1,[{file,"emqx_gateway_insta_sup.erl"},{line,109}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,851}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,814}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
2024-01-11T16:07:48.353027+08:00 [error] crasher: initial call: emqx_gateway_insta_sup:init/1, pid: <0.3139.0>, registered_name: [], error: {{badmatch,{error,{badauth,not_initialized}}},[{emqx_gateway_insta_sup,init,1,[{file,"emqx_gateway_insta_sup.erl"},{line,109}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,851}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,814}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}, ancestors: [stomp,emqx_gateway_sup,<0.3120.0>], message_queue_len: 0, messages: [], links: [<0.3123.0>], dictionary: [], trap_exit: true, status: running, heap_size: 4185, stack_size: 28, reductions: 8539; neighbours:

额,我刚试了下,没重现 。
你运行一 下
./bin/emqx eval “sys:get_state(emqx_flapping).”
贴下结果我看看

emqx eval “sys:get_state(emqx_flapping).”
#{default => undefined}

我重试了很多次,好像可以重复连接了,但是我一开始连接抖动都是关闭的,所以也不知道是什么原因。