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

Replicator doesn't retry after disable and enable wifi #2372

Closed
pasin opened this issue Mar 13, 2019 · 1 comment

Comments

@pasin
Copy link
Contributor

commented Mar 13, 2019

From the test fest, I have found that the replicator doesn't retry after re-enabling the wifi.

When disable Wifi:

2019-03-13 15:56:47.455371-0700 Todo[1362:470118] CouchbaseLite Replicator Info: CBLReplicator[<*> URL[ws://ec2-3-85-244-123.compute-1.amazonaws.com:4984/todo]]: Network error (Network is down); will retry when network changes...
2019-03-13 15:56:47.455831-0700 Todo[1362:470118] CouchbaseLite Replicator Info: CBLReplicator[<*> URL[ws://ec2-3-85-244-123.compute-1.amazonaws.com:4984/todo]] is offline, progress 0/0, error: Error Domain=NSPOSIXErrorDomain Code=50 "Network is down" UserInfo={NSLocalizedDescription=Network is down}
2019-03-13 15:56:47.456401-0700 Todo[1362:469593] [Todo] Replicator: Offline, 0/0, error: Error Domain=NSPOSIXErrorDomain Code=50 "Network is down" UserInfo={NSLocalizedDescription=Network is down}

When re-enable Wifi:

2019-03-13 15:56:54.234552-0700 Todo[1362:471385] CouchbaseLite Replicator Info: Reachability<ec2-3-85-244-123.compute-1.amazonaws.com>: flags <-- 2

  • Version: iridium

@pasin pasin self-assigned this Mar 13, 2019

@pasin pasin added this to the Iridium milestone Mar 13, 2019

pasin added a commit that referenced this issue Mar 14, 2019

Fix checking reachability bug that prevents retry logic
Fixed if condition check that prevents to retry after becoming online again. This is a regression bug.

#2372
@pasin

This comment has been minimized.

Copy link
Contributor Author

commented Mar 15, 2019

Verified. Closed as fixed.

@pasin pasin closed this Mar 15, 2019

pasin added a commit that referenced this issue Mar 22, 2019

Fix checking reachability bug that prevents retry logic
Fixed if condition check that prevents to retry after becoming online again. This is a regression bug.

#2372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.