couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to e691ec3
Date Tue, 04 Aug 2015 14:40:45 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 89ca7e034 -> e691ec3bd


Don't send empty buffer as it terminates response prematurely


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/e691ec3b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/e691ec3b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/e691ec3b

Branch: refs/heads/master
Commit: e691ec3bd1cf0e1b2f6fbe6470e48c40bd18dcc2
Parents: 89ca7e0
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Aug 4 15:40:27 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Aug 4 15:40:27 2015 +0100

----------------------------------------------------------------------
 src/chttpd_db.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/e691ec3b/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 53e217f..a8fdc16 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -193,6 +193,8 @@ changes_callback({stop, EndSeq, Pending}, Acc) ->
     {ok, Resp1} = chttpd:close_delayed_json_object(Resp, Buf, Terminator, Max),
     chttpd:end_delayed_json_response(Resp1);
 
+changes_callback(waiting_for_updates, #cacc{buffer = []} = Acc) ->
+    {ok, Acc};
 changes_callback(waiting_for_updates, Acc) ->
     #cacc{buffer = Buf, mochi = Resp} = Acc,
     {ok, Resp1} = chttpd:send_delayed_chunk(Resp, Buf),


Mime
View raw message