Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 60743 invoked from network); 2 Jun 2008 22:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 22:29:55 -0000 Received: (qmail 82915 invoked by uid 500); 2 Jun 2008 22:29:58 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 82888 invoked by uid 500); 2 Jun 2008 22:29:58 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 82879 invoked by uid 99); 2 Jun 2008 22:29:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 15:29:58 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 22:29:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 481FB23889F1; Mon, 2 Jun 2008 15:29:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r662591 - /incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Date: Mon, 02 Jun 2008 22:29:34 -0000 To: couchdb-commits@incubator.apache.org From: cmlenz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080602222934.481FB23889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cmlenz Date: Mon Jun 2 15:29:33 2008 New Revision: 662591 URL: http://svn.apache.org/viewvc?rev=662591&view=rev Log: Increase the request body size limitations on bulk_docs and document POST to 4GB. Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=662591&r1=662590&r2=662591&view=diff ============================================================================== --- incubator/couchdb/trunk/src/couchdb/couch_httpd.erl (original) +++ incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Mon Jun 2 15:29:33 2008 @@ -184,7 +184,7 @@ handle_db_request(Req, 'POST', {_DbName, Db, []}) -> % TODO: Etag handling - Json = cjson:decode(Req:recv_body()), + Json = cjson:decode(Req:recv_body(?MAX_DOC_SIZE)), Doc = couch_doc:from_json_obj(Json), DocId = couch_util:new_uuid(), {ok, NewRev} = couch_db:update_doc(Db, Doc#doc{id=DocId, revs=[]}, []), @@ -199,7 +199,7 @@ handle_db_request(Req, 'POST', {_DbName, Db, ["_bulk_docs"]}) -> Options = [], % put options here. - {obj, JsonProps} = cjson:decode(Req:recv_body()), + {obj, JsonProps} = cjson:decode(Req:recv_body(?MAX_DOC_SIZE)), DocsArray = proplists:get_value("docs", JsonProps), % convert all the doc elements to native docs case proplists:get_value("new_edits", JsonProps, true) of