Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only emit CATCHUP if recovering from conn error #727

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 7, 2018

Have the keepalive promise return a boolean indicating whether it
detected a connectivity failure or not. Use this to only emit
CATCHUP if there was a connectivity error, to try & suppress
the state flip-flopping back & forth between CATCHUP and ERROR
in the case where we have connectivity but the sync is returning
and error for whatever reason.

Have the keepalive promise return a boolean indicating whether it
detected a connectivity failure or not. Use this to only emit
CATCHUP if there was a connectivity error, to try & suppress
the state flip-flopping back & forth between CATCHUP and ERROR
in the case where we have connectivity but the sync is returning
and error for whatever reason.
@dbkr dbkr requested review from bwindels and a team and removed request for bwindels September 7, 2018 10:32
src/sync.js Show resolved Hide resolved
@dbkr dbkr merged commit 96e2170 into develop Sep 7, 2018
@t3chguy t3chguy deleted the dbkr/conn_did_fail branch May 10, 2022 14:19
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