You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rumqttc version: 0.24.0
tokio version: 1.44.2
OS: Arch Linux 6.14
Broker: Dockerized EMQX
Testing tool: emqx/emqtt-bench
While performance testing my application, I encountered a consistent issue where the client disconnects abruptly under high load. This behavior persists across reboots and is reproducible.
The test involves sending approximately 25,000 messages per second, each 4 bytes in size. The client consistently disconnects almost immediately and returns the following error:
MqttState(Io(Custom { kind: ConnectionAborted, error: "connection closed by peer" }))
in an handler task performing this
loop{match eventloop.poll.await(){Ok(event) => /*bla bla*/Err(conn_err) => /* error returned here, will go right back to eventloop.poll but do nothing forever */}}
According to the application's logs, it appears the disconnection is initiated by the server. However, analyzing the EMQX logs indicates a different story:
Environment
rumqttc version: 0.24.0
tokio version: 1.44.2
OS: Arch Linux 6.14
Broker: Dockerized EMQX
Testing tool: emqx/emqtt-bench
While performance testing my application, I encountered a consistent issue where the client disconnects abruptly under high load. This behavior persists across reboots and is reproducible.
The test involves sending approximately 25,000 messages per second, each 4 bytes in size. The client consistently disconnects almost immediately and returns the following error:
in an handler task performing this
According to the application's logs, it appears the disconnection is initiated by the server. However, analyzing the EMQX logs indicates a different story:
The client is never explicitly dropped, and no panics are observed.
Even with a significantly increased AsyncClient event loop capacity, the issue persists.
Reproducibility: The disconnection issue can be reproduced consistently on my machine
I am available to provide further details or logs if needed to help diagnose the problem.
The text was updated successfully, but these errors were encountered: