threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

track pong timeouts #108

Closed muhamadazmy closed 1 year ago

muhamadazmy commented 1 year ago

To avoid stall connection we already send pings every 20 seconds we can then be sure to receive at least 1 message every 20 seconds hence, we can calculate the dealy of the messages and if it's more than twice the ping interval, we can assume connection is stalling