No title Revision 323832636538 (Thu Nov 17 2011 at 13:48) - Diff Link to this snippet: https://friendpaste.com/1TWqKb1Ac2hmKYh7VgNMLO Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324Index: src/couchdb/couch_rep_reader.erl===================================================================--- src/couchdb/couch_rep_reader.erl (revision 1177549)+++ src/couchdb/couch_rep_reader.erl (working copy)@@ -177,7 +177,7 @@ hd(State#state.opened_seqs). split_revlist(Rev, {[CurrentAcc|Rest], BaseLength, Length}) ->- case Length+size(Rev)+3 > 8192 of+ case Length+size(Rev)+3 >= 8192 of false -> {[[Rev|CurrentAcc] | Rest], BaseLength, Length+size(Rev)+3}; true ->@@ -214,7 +214,9 @@ %% MochiWeb into multiple requests BaseQS = [{revs,true}, {latest,true}, {att_encoding_info,true}], BaseReq = DbS#http_db{resource=encode_doc_id(DocId), qs=BaseQS},- BaseLength = length(couch_rep_httpc:full_url(BaseReq) ++ "&open_revs=[]"),+ BaseLength = length(+ "GET " ++ couch_rep_httpc:full_url(BaseReq) +++ "&open_revs=[]" ++ " HTTP/1.1\r\n"), {RevLists, _, _} = lists:foldl(fun split_revlist/2, {[[]], BaseLength, BaseLength}, couch_doc:revs_to_strs(Revs)),