> Is this a continuous replication or one-shot? 

It's a one-shot replication.  Is there any way to know that the one-shot 
replication timed out and gave up?

> If the device loses its network, the replication will go into the Offline 
state. IIRC a one-shot will stop, while a continuous replication will wait 
for the network to come back.

Okay so for this case we can just check for `kCBLReplicationOffline`.

> 1.0.4 is really old and there have been lots of changes and bug fixes 
since then, but the above has always been the intended behavior. 

Yeah we're going to update as soon as we can but we keep having blocking 
issues in CBL that prohibits us from upgrading.  Hopefully soon as most 
seem resolved in your next release.  Thanks for your help as always.

On Wednesday, May 18, 2016 at 5:02:43 PM UTC-7, Jens Alfke wrote:
>
>
> > On May 18, 2016, at 4:44 PM, David Quon <[email protected] 
> <javascript:>> wrote: 
> > 
> > we either kill CouchDB or disconnect the Internet from the iPad. What we 
> were expecting to happen was to get an error from CBL replication to the 
> effect of connectivity was lost.  However CBL seems to keep trying to 
> replicate and eventually gives the same status as a successful replication. 
>
> Is this a continuous replication or one-shot? 
>
> If the server goes down, the _changes feed request will fail with a socket 
> error. CBL treats this as a transient error and will retry. A one-shot 
> replication will give up after a minute or so. A continuous replication 
> will keep trying in case the server comes back up. 
>
> If the device loses its network, the replication will go into the Offline 
> state. IIRC a one-shot will stop, while a continuous replication will wait 
> for the network to come back. 
>
> 1.0.4 is really old and there have been lots of changes and bug fixes 
> since then, but the above has always been the intended behavior. 
>
> —Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/e6a6d853-d5d4-4c3b-a2ad-7a292d614b96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to