Returned unparseable data sometimes when requesting sync

More findings might be related to the real reason for the problem:

  • When I request replicate with continuous as false, seems the response will wait the all docs sync are finished, if there are many docs need to be replicated, it will make the request timeout and no docs are replicated.

  • If request replicate with continuous as true, there might be still timeout in the first time replicate request, but after the first time, the sync will be succeed.

My question is:

  • for one shot replication, we have to give enough long timeout for the response, is this right behaviour?
  • for the continuous replication, at least for my testing, there is still timeout (I set 30 seconds) happened for the first time request replication, why we need wait so long?
  • any suggestions for using continuous replication or not?

Thanks!
Hanzhi