**Describe the bug**

使用服务方式启动nanomq，
[Service]
Type=simple
ExecStart=/opt/wonen/nanomq/bin/nanomq start --conf etc/nanomq.conf
Restart=on-failure
RestartSec=20
StartLimitInterval=0

当桥接不断失败后，会自动重启，版本0.21.8  。期望桥接失败不影响本地继续使用
`
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5994] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5993] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:699 mqtt_send_cb: MQTT client send error 7!
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5994] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 31 or NULL msg received
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [6006] WARN  /home/econe/dev/nanomq/nanomq/bridge.c:1081 bridge_tcp_disconnect_cb: bridge client disconnected! RC [139]
May 11 16:23:31 orangepi5 nanomq[5987]: 2024-05-11 16:23:31 [5998] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:23:31 orangepi5 nanomq[5987]: panic: /home/econe/dev/nanomq/nng/src/mqtt/transport/tcp/mqtt_tcp.c: 807: assert err: len == nni_ms
May 11 16:23:31 orangepi5 nanomq[5987]: This message is indicative of a BUG.
May 11 16:23:31 orangepi5 nanomq[5987]: Report this at https://github.com/emqx/nanomq
May 11 16:23:31 orangepi5 nanomq[5987]: 2024-05-11 16:23:31 [5999] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:104 sig_handler: signal signumber: 6 received!
May 11 16:23:31 orangepi5 systemd[1]: nanomq.service: Main process exited, code=exited, status=1/FAILURE
May 11 16:23:31 orangepi5 systemd[1]: nanomq.service: Failed with result 'exit-code'.
May 11 16:24:01 orangepi5 systemd[1]: nanomq.service: Scheduled restart job, restart counter is at 2.
May 11 16:24:01 orangepi5 systemd[1]: Stopped nanomq.
May 11 16:24:01 orangepi5 systemd[1]: Started nanomq.
May 11 16:24:01 orangepi5 nanomq[7372]: {}
May 11 16:24:01 orangepi5 nanomq[7372]: Server URL: mqtt-tcp://172.16.1.20:1883
May 11 16:24:01 orangepi5 nanomq[7372]: NanoMQ Broker is started successfully!
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 31 or NULL msg received
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 7 or NULL msg received
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7393] WARN  /home/econe/dev/nanomq/nanomq/bridge.c:1081 bridge_tcp_disconnect_cb: bridge client disconnected! RC [139]
May 11 16:24:04 orangepi5 nanomq[7372]: 2024-05-11 16:24:04 [7386] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!

`


Weird ASSERT warning in self-complied Docker?
This is a GitHub Issue
repo:nanomq
owner:emqx
Title : Weird ASSERT warning in self-complied Docker?
Issue date:

--- start body ---
**Describe the bug**

使用服务方式启动nanomq，
[Service]
Type=simple
ExecStart=/opt/wonen/nanomq/bin/nanomq start --conf etc/nanomq.conf
Restart=on-failure
RestartSec=20
StartLimitInterval=0

当桥接不断失败后，会自动重启，版本0.21.8  。期望桥接失败不影响本地继续使用
`
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5994] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5993] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:699 mqtt_send_cb: MQTT client send error 7!
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [5994] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 31 or NULL msg received
May 11 16:23:30 orangepi5 nanomq[5987]: 2024-05-11 16:23:30 [6006] WARN  /home/econe/dev/nanomq/nanomq/bridge.c:1081 bridge_tcp_disconnect_cb: bridge client disconnected! RC [139]
May 11 16:23:31 orangepi5 nanomq[5987]: 2024-05-11 16:23:31 [5998] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:23:31 orangepi5 nanomq[5987]: panic: /home/econe/dev/nanomq/nng/src/mqtt/transport/tcp/mqtt_tcp.c: 807: assert err: len == nni_ms
May 11 16:23:31 orangepi5 nanomq[5987]: This message is indicative of a BUG.
May 11 16:23:31 orangepi5 nanomq[5987]: Report this at https://github.com/emqx/nanomq
May 11 16:23:31 orangepi5 nanomq[5987]: 2024-05-11 16:23:31 [5999] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:104 sig_handler: signal signumber: 6 received!
May 11 16:23:31 orangepi5 systemd[1]: nanomq.service: Main process exited, code=exited, status=1/FAILURE
May 11 16:23:31 orangepi5 systemd[1]: nanomq.service: Failed with result 'exit-code'.
May 11 16:24:01 orangepi5 systemd[1]: nanomq.service: Scheduled restart job, restart counter is at 2.
May 11 16:24:01 orangepi5 systemd[1]: Stopped nanomq.
May 11 16:24:01 orangepi5 systemd[1]: Started nanomq.
May 11 16:24:01 orangepi5 nanomq[7372]: {}
May 11 16:24:01 orangepi5 nanomq[7372]: Server URL: mqtt-tcp://172.16.1.20:1883
May 11 16:24:01 orangepi5 nanomq[7372]: NanoMQ Broker is started successfully!
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 31 or NULL msg received
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7377] ERROR /home/econe/dev/nanomq/nanomq/apps/broker.c:305 server_cb: RECV nng aio result error: 7 or NULL msg received
May 11 16:24:01 orangepi5 nanomq[7372]: 2024-05-11 16:24:01 [7393] WARN  /home/econe/dev/nanomq/nanomq/bridge.c:1081 bridge_tcp_disconnect_cb: bridge client disconnected! RC [139]
May 11 16:24:04 orangepi5 nanomq[7372]: 2024-05-11 16:24:04 [7386] WARN  /home/econe/dev/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_client.c:747 mqtt_recv_cb: MQTT client recv error 136!

`


--- end body ---

The issue describes a problem with the NanoMQ service where it experiences repeated crashes due to assertion failures when handling MQTT client connections. The logs indicate that the service is unable to handle certain errors gracefully, leading to a panic and subsequent restart. This behavior suggests a potential bug in the error handling logic rather than a direct security vulnerability, as it does not expose sensitive data or allow for unauthorized access.