From 85809452290b99a0a00a91dd319b82f51f9f0c4a Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Mon, 30 Nov 2009 03:59:02 +0000 Subject: 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 --- src/couchdb/couch_httpd_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3