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

set Heatbeat Value to changetracker from REST. #76

Open
NitzDKoder opened this issue Nov 18, 2016 · 2 comments
Open

set Heatbeat Value to changetracker from REST. #76

NitzDKoder opened this issue Nov 18, 2016 · 2 comments
Labels
Milestone

Comments

@NitzDKoder
Copy link

NitzDKoder commented Nov 18, 2016

Hi All,

1)Phonegap app talking to CBL local WEB sever.

2)Setting _changes request Heatbeat value to random value(30 secs, 1 min, 2 mins , 5 mins).

http://developer.couchbase.com/documentation/mobile/1.1.0/develop/references/couchbase-lite/rest-api/database/get-changes/index.html

is this heatbeat value to remote cbsyncgatway or to CBL local WEB sever?

3)Seems the value set from REST is not taken and default 30 secs is taken as hearbeat value ,when requesting cbsyncgatway.

https://github.com/couchbase/couchbase-lite-java-core/search?utf8=%E2%9C%93&q=heartbeat

  1. java Replication.DEFAULT_HEARTBEAT = random value(30 secs, 1 min, 2 mins , 5 mins) Works.

5)How set Heatbeat Value to changetracker from REST/JS level?

Thanks
Nithin

@NitzDKoder
Copy link
Author

@hideki any inputs on this?

@hideki
Copy link

hideki commented Nov 23, 2016

Hi @NitzDKoder,

If your application calls /_changes REST API with feed=longpoll and heartbeat=, web server sends CRLF "\r\n" every milliseconds.

Currently you can not change default heartbeat value setting for Replicator. Pull replicator calls Sync Gateway with heartbeat=30000.

Thanks!

@djpongh djpongh added the icebox label Dec 16, 2016
@djpongh djpongh added this to the 1.5.0 milestone Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants