summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-11-30 03:59:02 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-11-30 03:59:02 +0000
commit85809452290b99a0a00a91dd319b82f51f9f0c4a (patch)
treefa05c1f1b7d7daed9c886e1edc4e1114d42d92ee /src
parenta37fdafcc65632328599939abf0863d9c02043dd (diff)
work on COUCHDB-582, fixes issues with filtered longpoll requests closing early
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885329 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 5d23232e..22d18d2f 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -159,7 +159,7 @@ keep_sending_changes(#httpd{user_ctx=UserCtx,path_parts=[DbName|_]}=Req, Resp,
Prepend, ResponseType, Limit, Filter, End),
couch_db:close(Db),
if
- EndSeq > StartSeq, ResponseType == "longpoll" ->
+ Limit > NewLimit, ResponseType == "longpoll" ->
end_sending_changes(Resp, EndSeq, ResponseType);
true ->
case wait_db_updated(Timeout, TimeoutFun) of