Skip to content

Channel: add resetConnectBackoff method#132

Open
pantia wants to merge 1 commit intoTimOrtel:mainfrom
pantia:feature/reset_connect_backoff
Open

Channel: add resetConnectBackoff method#132
pantia wants to merge 1 commit intoTimOrtel:mainfrom
pantia:feature/reset_connect_backoff

Conversation

@pantia
Copy link

@pantia pantia commented Mar 12, 2026

Adds resetConnectBackoff to Channel to allow resetting the connection backoff state and forcing the channel to retry connection attempts without waiting for the current backoff delay

Adds resetConnectBackoff to Channel to allow resetting the connection
backoff state and forcing the channel to retry connection attempts
without waiting for the current backoff delay
}
}

actual fun resetConnectBackoff() {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the function should also work in the native implementation and reset the backoff timer. Is there a reason you did not include it in the implementation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking the same thing but I don't have experience with Rust and it's more complicated to implement there. I'll still be testing but for some reason tonic works differently and so far I haven't seen any issues with reconnection on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants