multiple calls to _replicate

2014-10-22 Thread Seung Chan Lim
I'm curious what the underlying behavior of the phonegap couchdblite plug in is when you make multiple _request http requests. My use case is that the session cookie has expired, and I want to make a new _request HTTP request with new cookie headers. What I'm worried is that it is somehow incr

Re: multiple calls to _replicate

2014-10-22 Thread Jens Alfke
> On Oct 22, 2014, at 7:29 PM, Seung Chan Lim wrote: > > I'm curious what the underlying behavior of the phonegap couchdblite plug in > is when you make multiple _request http requests. You mean _replicate? CBL won't run more than one "equivalent" replication at a time. Where "equivalent" m

Re: multiple calls to _replicate

2014-10-23 Thread Seung Chan Lim
Yes. http://lite.couchbae./_replicate If the second request is ignored, what could I do to update its header information, which holds the updated session cookie? On Thursday, October 23, 2014 12:25:30 AM UTC-4, Jens Alfke wrote: > > > On Oct 22, 2014, at 7:29 PM, Seung Chan Lim > wrote: > > I'

Re: multiple calls to _replicate

2014-10-23 Thread Jens Alfke
> On Oct 23, 2014, at 8:01 AM, Seung Chan Lim wrote: > > If the second request is ignored, what could I do to update its header > information, which holds the updated session cookie? Stop the replication, update the headers, then start it again. —Jens -- You received this message because yo

Re: multiple calls to _replicate

2014-10-24 Thread Seung Chan Lim
Stop? You mean abort the HTTP call made to http://lite.couchbase./_replicate ? slim On Thursday, October 23, 2014 4:22:52 PM UTC-4, Jens Alfke wrote: > > > On Oct 23, 2014, at 8:01 AM, Seung Chan Lim > wrote: > > If the second request is ignored, what could I do to update its header > informat

Re: multiple calls to _replicate

2014-10-24 Thread Jens Alfke
> On Oct 24, 2014, at 7:42 AM, Seung Chan Lim wrote: > > Stop? You mean abort the HTTP call made to http://lite.couchbase./_replicate > ? No, POST to _replicate with the same source/target and adding a "cancel":true property. Looks like our REST API docs om

Re: multiple calls to _replicate

2014-10-24 Thread Seung Chan Lim
Can a HTTP request to http://lite.coucbase./_replicate with the cancel:true property ever return a 404 despite my having never canceled it manually? For example, could it cancel itself if replication isn't working well (i.e. goes offline due to being unable to reach the sgw or gets a 401 from th

Re: multiple calls to _replicate

2014-10-24 Thread Jens Alfke
> On Oct 24, 2014, at 4:28 PM, Seung Chan Lim wrote: > > Can a HTTP request to http://lite.coucbase./_replicate > with the cancel:true property ever return > a 404 despite my having never canceled it manually? For example, could it > cancel itself if replica

Re: multiple calls to _replicate

2014-10-24 Thread Seung Chan Lim
Is there any reason I would get a 404 if it's continous? slim On Friday, October 24, 2014 7:54:09 PM UTC-4, Jens Alfke wrote: > > > On Oct 24, 2014, at 4:28 PM, Seung Chan Lim > wrote: > > Can a HTTP request to http://lite.coucbase./_replicate with the > cancel:true property ever return a 404