Skip to content

Config replication heartbeat interval and timeout on android #12

@workingenius

Description

@workingenius

Hi,

We are using couchbase lite on mobile android devices, and replicate data through sync gateway. The replication behavior is not ideal in bad network, even if we have handled fatal network errors that will cause replication to stop permanently. If something in the network breaks down (turn off wifi, and turn it back on 2 minutes later, for example), the status would change to be "BUSY", and finally become "STOPPED" about 15 minutes later. We can't afford to wait so long to react.

We think this is because of something about heartbeat. With heartbeat, no matter the break point occurs in which layer, on which side, it should be detected in a relatively short time.

I searched and scanned the code base roughly and get that replication heartbeat interval default value is set to be 5 minutes in c++ code ( and I didn't saw config about heartbeat timeout ). In java code, logic about keyword "heartbeat" can not be found, especially in ReplicationConfiguration and classes about configuration.

Hope this feature being considered and supported. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions