EMQ 问答社区

client publish数据出现server主动发送断开请求

环境信息

  • EMQ X 版本:4.3.1
  • 操作系统及版本:Alpine Linux v3.12
  • 其他

问题描述

client同时publish一定量的数据过了一段时间后,出现client收到server发出的129 disconnect消息。

配置文件及日志

2021-06-18T06:18:40.629184+00:00 [debug] xxxxx@xxxxx [MQTT] RECV <<64,4,8,99,0,0>>
2021-06-18T06:18:40.629624+00:00 [error] xxxxx@xxxxx [MQTT] , Parse failed for function_clause, [{emqx_frame,split,[12,<<64,4,8,99,0,0>>],[{file,"emqx_frame.erl"},{line,130}]},{emqx_frame,parse,2,[{file,"emqx_frame.erl"},{line,125}]},{emqx_connection,parse_incoming,3,[{file,"emqx_connection.erl"},{line,583}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,576}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,325}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,290}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}], Frame data:<<64,4,8,99,0,0>>
2021-06-18T06:18:40.630386+00:00 [debug] xxxxx@xxxxx [MQTT] SEND DISCONNECT(Q0, R0, D0, ReasonCode=129)
2021-06-18T06:18:40.630636+00:00 [debug] xxxxx@xxxxx [MQTT] Force to close the socket due to function_clause

可能是已知问题,升级到 4.3.x 最新版