Skip to content

Reconnecting takes a very long time on Android after minimizing #131

@pantia

Description

@pantia

On Android if you minimize the app and wait, then reopen it, sometimes it takes up to a minute for the connection to be restored.

Channel.Builder
  .usePlaintext()
  .withKeepAliveConfig(
    KeepAliveConfig.Enabled(
      time = 15.seconds,
      timeout = 5.seconds,
      withoutCalls = true
    )
  ).build()

It seems that ManagedChannel has a resetConnectBackoff method to deal with this; maybe it should be made available in Channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions