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
Based on my internal tests the reconnection attempts do not honor the reconnection interval or at least in most cases will not honor it.
This might be related to the fact that reconnecting_interval is spawned after connecting and while in the session it's constantly stacking up events causing multiple instant resolutions inside the reconnect task depending on how much time passed:
Based on my internal tests the reconnection attempts do not honor the reconnection interval or at least in most cases will not honor it.
This might be related to the fact that
reconnecting_interval
is spawned after connecting and while in the session it's constantly stacking up events causing multiple instant resolutions inside the reconnect task depending on how much time passed:rust-sdks/livekit/src/rtc_engine/mod.rs
Line 695 in 0699735
It looks like the custom interval doesn't support different
MissedTickBehavior
:rust-sdks/livekit-runtime/src/async_std.rs
Lines 11 to 12 in 0699735
so potential solution would be to add
inner.reconnecting_interval.lock().await.reset();
before starting the reconnection task:rust-sdks/livekit/src/rtc_engine/mod.rs
Lines 599 to 600 in 0699735
but that's just an initial, potentially dirty, quick fix.
Please take a look into this issue as it reduces the designed 50-second reconnection window down to 10-15 seconds.
The text was updated successfully, but these errors were encountered: