客户端被无故踢掉,EMQX 4.4.19

我在使用EMQX4.4.19部署了服务器,使用物联设备(mqtt v3.3.1协议)连接该服务器。
物联客户端刚连接上没多久就会被broker踢掉,我对该设备开起了日志跟踪,确实显示borker会自动发送will。
下面是设备连接断开的日志跟踪,但是为什么会被踢掉并没有交代:

2024-03-27T07:18:56.243749+08:00 [debug] 172.23.0.10:44476 [Mnesia] Auth from mnesia succeeded, Client: #{clientid => <<"0200000038">>,
                                               is_bridge => false,
                                               is_superuser => false,
                                               mountpoint => undefined,
                                               peerhost => {172,23,0,10},
                                               protocol => mqtt,
                                               sockport => 1883,
                                               username =>
                                                   <<"xxx.com.cn">>,
                                               zone => external}
2024-03-27T07:18:56.243853+08:00 [debug] 172.23.0.10:44476 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=0200000038, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=60, Username=xxx.com.cn, Password=******, Will(Q0, R1, Topic=/xxx.com.cn/msg/02/000/00038, Payload=<<"88">>))
2024-03-27T07:18:56.244191+08:00 [debug] 172.23.0.10:44476     client_id: <<"0200000038">>
    msg: insert_channel_info
2024-03-27T07:18:56.244262+08:00 [debug] 172.23.0.10:44476 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-03-27T07:18:56.309558+08:00 [debug] 172.23.0.10:44476 [MQTT] RECV <<130,37,0,24,0,32,47,115,100,99,115,111,102,116,46,99,111,109,46,99,110,47,99,109,100,47,48,50,47,48,48,48,47,48,48,48,51,56,0>>
2024-03-27T07:18:56.309703+08:00 [debug] 172.23.0.10:44476 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=24, TopicFilters=[{<<"/xxx.com.cn/cmd/02/000/00038">>,#{nl => 0,qos => 0,rap => 0,rh => 0}}])
2024-03-27T07:18:56.309849+08:00 [debug] 172.23.0.10:44476 [Mnesia] ACL ignored, Topic: <<"/xxx.com.cn/cmd/02/000/00038">>, Action: subscribe for Client: #{anonymous =>
                                                                                                         false,
                                                                                                     auth_result =>
                                                                                                         success,
                                                                                                     clientid =>
                                                                                                         <<"0200000038">>,
                                                                                                     is_bridge =>
                                                                                                         false,
                                                                                                     is_superuser =>
                                                                                                         false,
                                                                                                     mountpoint =>
                                                                                                         undefined,
                                                                                                     peerhost =>
                                                                                                         {172,
                                                                                                          23,
                                                                                                          0,
                                                                                                          10},
                                                                                                     protocol =>
                                                                                                         mqtt,
                                                                                                     sockport =>
                                                                                                         1883,
                                                                                                     username =>
                                                                                                         <<"xxx.com.cn">>,
                                                                                                     zone =>
                                                                                                         external}
2024-03-27T07:18:56.310006+08:00 [info] 172.23.0.10:44476 0200000038 SUBSCRIBE /xxx.com.cn/cmd/02/000/00038: Options: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2024-03-27T07:18:56.310206+08:00 [debug] 172.23.0.10:44476 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=24, ReasonCodes=[0])
2024-03-27T07:19:56.300471+08:00 [debug] 172.23.0.10:44476 [Mnesia] ACL ignored, Topic: <<"/xxx.com.cn/msg/02/000/00038">>, Action: publish for Client: #{anonymous =>
                                                                                                       false,
                                                                                                   auth_result =>
                                                                                                       success,
                                                                                                   clientid =>
                                                                                                       <<"0200000038">>,
                                                                                                   is_bridge =>
                                                                                                       false,
                                                                                                   is_superuser =>
                                                                                                       false,
                                                                                                   mountpoint =>
                                                                                                       undefined,
                                                                                                   peerhost =>
                                                                                                       {172,
                                                                                                        23,
                                                                                                        0,
                                                                                                        10},
                                                                                                   protocol =>
                                                                                                       mqtt,
                                                                                                   sockport =>
                                                                                                       1883,
                                                                                                   username =>
                                                                                                       <<"xxx.com.cn">>,
                                                                                                   zone =>
                                                                                                       external}
2024-03-27T07:19:56.300683+08:00 [info] 172.23.0.10:44476 PUBLISH to /xxx.com.cn/msg/02/000/00038: <<"88">>
2024-03-27T07:19:56.300839+08:00 [info] 172.23.0.10:44476     msg: terminate
    reason: {shutdown,tcp_closed}
2024-03-27T07:19:57.172176+08:00 [debug] 172.23.0.10:51432 [Mnesia] Auth from mnesia succeeded, Client: #{clientid => <<"0200000038">>,
                                               is_bridge => false,
                                               is_superuser => false,
                                               mountpoint => undefined,
                                               peerhost => {172,23,0,10},
                                               protocol => mqtt,
                                               sockport => 1883,
                                               username =>
                                                   <<"xxx.com.cn">>,
                                               zone => external}
2024-03-27T07:19:57.172301+08:00 [debug] 172.23.0.10:51432 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=0200000038, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=60, Username=xxx.com.cn, Password=******, Will(Q0, R1, Topic=/xxx.com.cn/msg/02/000/00038, Payload=<<"88">>))
2024-03-27T07:19:57.172677+08:00 [debug] 172.23.0.10:51432     client_id: <<"0200000038">>
    msg: insert_channel_info
2024-03-27T07:19:57.172754+08:00 [debug] 172.23.0.10:51432 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-03-27T07:19:57.252065+08:00 [debug] 172.23.0.10:51432 [MQTT] RECV <<130,37,0,25,0,32,47,115,100,99,115,111,102,116,46,99,111,109,46,99,110,47,99,109,100,47,48,50,47,48,48,48,47,48,48,48,51,56,0>>
2024-03-27T07:19:57.252203+08:00 [debug] 172.23.0.10:51432 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=25, TopicFilters=[{<<"/xxx.com.cn/cmd/02/000/00038">>,#{nl => 0,qos => 0,rap => 0,rh => 0}}])
2024-03-27T07:19:57.252361+08:00 [debug] 172.23.0.10:51432 [Mnesia] ACL ignored, Topic: <<"/xxx.com.cn/cmd/02/000/00038">>, Action: subscribe for Client: #{anonymous =>
                                                                                                         false,
                                                                                                     auth_result =>
                                                                                                         success,
                                                                                                     clientid =>
                                                                                                         <<"0200000038">>,
                                                                                                     is_bridge =>
                                                                                                         false,
                                                                                                     is_superuser =>
                                                                                                         false,
                                                                                                     mountpoint =>
                                                                                                         undefined,
                                                                                                     peerhost =>
                                                                                                         {172,
                                                                                                          23,
                                                                                                          0,
                                                                                                          10},
                                                                                                     protocol =>
                                                                                                         mqtt,
                                                                                                     sockport =>
                                                                                                         1883,
                                                                                                     username =>
                                                                                                         <<"xxx.com.cn">>,
                                                                                                     zone =>
                                                                                                         external}
2024-03-27T07:19:57.252522+08:00 [info] 172.23.0.10:51432 0200000038 SUBSCRIBE /xxx.com.cn/cmd/02/000/00038: Options: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2024-03-27T07:19:57.252747+08:00 [debug] 172.23.0.10:51432 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=25, ReasonCodes=[0])
2024-03-27T07:20:57.228760+08:00 [debug] 172.23.0.10:51432 [Mnesia] ACL ignored, Topic: <<"/xxx.com.cn/msg/02/000/00038">>, Action: publish for Client: #{anonymous =>
                                                                                                       false,
                                                                                                   auth_result =>
                                                                                                       success,
                                                                                                   clientid =>
                                                                                                       <<"0200000038">>,
                                                                                                   is_bridge =>
                                                                                                       false,
                                                                                                   is_superuser =>
                                                                                                       false,
                                                                                                   mountpoint =>
                                                                                                       undefined,
                                                                                                   peerhost =>
                                                                                                       {172,
                                                                                                        23,
                                                                                                        0,
                                                                                                        10},
                                                                                                   protocol =>
                                                                                                       mqtt,
                                                                                                   sockport =>
                                                                                                       1883,
                                                                                                   username =>
                                                                                                       <<"xxx.com.cn">>,
                                                                                                   zone =>
                                                                                                       external}
2024-03-27T07:20:57.228993+08:00 [info] 172.23.0.10:51432 PUBLISH to /xxx.com.cn/msg/02/000/00038: <<"88">>
2024-03-27T07:20:57.229244+08:00 [info] 172.23.0.10:51432     msg: terminate
    reason: {shutdown,tcp_closed}
 msg: terminate
    reason: {shutdown,tcp_closed}

这里可以看出来是客户端主动断开了连接

[info] 172.23.0.10:51432 PUBLISH to /xxx.com.cn/msg/02/000/00038: <<“88”>>
这里可以看到will
但是服务器并没有收到,断开连接的消息,还有就是连接后会很快掉线,没到心跳时间就掉了

我发现了问题的跟节,我使用nginx反向代理的emqx,造成的连接断开问题。只有nginx哪里配置出的问题,暂时不清楚。
请问你们有nginx代理emqx的资料吗?