Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit e3bab16

Browse files
committed
Added documentation note about continuous changes blocking
1 parent db6b3fe commit e3bab16

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
the message and cause are more clear and a round trip is avoided.
66
- [IMPROVED] Prevent multiple session renewal requests happening simultaneously because some auth
77
types apply limits to the number of requests that can be made.
8+
- [IMPROVED] Documented that for some database versions a call to get continuous changes may block
9+
when there are no changes available immediately.
810
- [UPGRADED] Optional OkHttp dependency to version 3.12.5.
911

1012
# 2.17.0 (2019-05-23)

cloudant-client/src/main/java/com/cloudant/client/api/Changes.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ public class Changes {
101101
* This method will connect to the changes feed; any configuration options applied after calling
102102
* it will be ignored.
103103
* </P>
104-
*
104+
*<P>
105+
* Note that in some versions of Apache CouchDB and Cloudant the HTTP response headers will be
106+
* delayed until the first change or heartbeat is sent
107+
* (see https://github.com/apache/couchdb/issues/985). As such this method may block for up to
108+
* the heartbeat duration if there are no changes to be received from the database immediately.
109+
*</P>
105110
* @return this Changes instance connected to a continuous feed, use
106111
* {@link #hasNext()} and {@link #next()} to iterate the changes.
107112
*/

0 commit comments

Comments
 (0)