When I have a TouchDB running continuous sync from basecouch, I see a ton of requests to the _changes, like the longpoll is not waiting and so the client is issuing another request.
Then when there IS an update, the requests stop and I get output like this:
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 POST /channelsync/_revs_diff
2012/12/18 15:32:53 POST /channelsync/_bulk_docs
2012/12/18 15:32:53 Assigning doc "testdoc" to channels []
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
When I have a TouchDB running continuous sync from basecouch, I see a ton of requests to the _changes, like the longpoll is not waiting and so the client is issuing another request.
Then when there IS an update, the requests stop and I get output like this:
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 POST /channelsync/_revs_diff
2012/12/18 15:32:53 POST /channelsync/_bulk_docs
2012/12/18 15:32:53 Assigning doc "testdoc" to channels []
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 GET /channelsync/_changes?feed=longpoll&heartbeat=300000&style=all_docs&since=137&limit=100&filter=channelsync/bychannel&channels=043527951231226325,28639595629647374,907225544564426
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 ...done waiting
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...
2012/12/18 15:32:53 waiting for a revision...