FactbirdHQ / mqttrust

MQTT client for embedded devices, written in rust
53 stars 5 forks source link

Wrong PINGREQ/PINGRESP handling #23

Closed MathiasKoch closed 3 years ago

MathiasKoch commented 3 years ago

We are seeing a lot of disconnects due to CONNECTION_LOST in AWS, where each of them correlates to an Error awaiting for last ping response.

3.295891 ERROR Error awaiting for last ping response
└─ mqttrust::state::{{impl}}::handle_outgoing_ping @ /home/mathias/.cargo/git/checkouts/mqttrust-76b1690cafd0c799/b51eee9/src/state.rs:309
3.295891 DEBUG Disconnecting from an event error.
└─ mqttrust::eventloop::{{impl}}::yield_event::{{closure}} @ /home/mathias/.cargo/git/checkouts/mqttrust-76b1690cafd0c799/b51eee9/src/eventloop.rs:128
3.296187 ERROR Abort error
└─ factbird_rs::idle @ factbird-rs/src/main.rs:788
3.298387 DEBUG Network connected!
└─ mqttrust::eventloop::{{impl}}::network_connect @ /home/mathias/.cargo/git/checkouts/mqttrust-76b1690cafd0c799/b51eee9/src/eventloop.rs:243
3.298387 INFO  MQTT connecting..
└─ mqttrust::eventloop::{{impl}}::mqtt_connect @ /home/mathias/.cargo/git/checkouts/mqttrust-76b1690cafd0c799/b51eee9/src/eventloop.rs:269
3.299087 INFO  Signal power: -109 dBm, qual: 2
└─ factbird_rs::idle @ factbird-rs/src/main.rs:605
3.299287 DEBUG MQTT connected!

image