BUG反馈,emqx_auth_http插件开启,会在订阅数达到20000多时候自己挂掉

环境信息

  • EMQ X 版本:4.3.3
  • 操作系统及版本:centos7.5
  • 其他

问题描述

订阅测试命令:

A客户机:
emqtt_bench pub -t t -h IP -p 1883 -s 500 -q 0 -c 1 -I 1000

B客户机:
emqtt_bench sub -t t -h IP -p 1883 -c 50000

两台做了集群,发现其中一台频繁挂掉,查看日志提示:

"https://测试的域名/api/mqtt/SuperUser"}}]}: {exit,{timeout,{gen_server,call,[<0.1869.0>,{post,{"/api/mqtt/Auth",[{"content-type","application/json"}],<<"{\"clientid\":\"panda-l"...>>},5000},6000]}},[{gen_server,call,3,[{file,"gen_server.erl"},{line,246}]},{ehttpc,request,5,[{file,"ehttpc.erl"},{line,69}]},{emqx_auth_http_cli,request,6,[{file,"emqx_auth_http_cli.erl"},{line,41}]},{emqx_auth_http,check,3,[{file,"emqx_auth_http.erl"},{line,44}]},{emqx_hooks,safe_execute,2,[{file,"emqx_hooks.erl"},{line,191}]},{emqx_hooks,do_run_fold,3,[{file,"emqx_hooks.erl"},{line,170}]},{emqx_access_control,authenticate,1,[{file,"emqx_access_control.erl"},{line,77}]},{emqx_channel,auth_connect,2,[{file,"emqx_channel.erl"},{line,1250}]},{emqx_misc,pipeline,3,[{file,[...]},{line,...}]},{emqx_channel,handle_in,2,[{file,...},{...}]},{emqx_connection,with_channel,3,[{...}|...]},{emqx_connection,process_msg,2,[...]},{emqx_connection,process_msg,2,...},{emqx_connection,handle_recv,...},{proc_lib,...}]}
2021-07-05T13:32:27.803398+08:00 [error] ehttpc: Received 'gun_error' message from unknown stream ref: #Ref<0.3610867007.3193700359.39872>

emqx_auth_http插件开启时候,会在订阅数达到20000多时候挂掉,这个插件关掉就正常了。

感谢你的反馈,这个问题我们已经在4.3.4修复了!