incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <>
Subject Re: attachment file size limit?
Date Sat, 19 Jul 2008 08:20:14 GMT
On 19.07.2008, at 03:37, Jan Lehnardt wrote:
> On Jul 19, 2008, at 02:35, Dean Landolt wrote:
>> I seem to be running up an arbitrary file size limit in MochiWeb. For
>> smaller files I'm in good shape, but once I get upward of a few  
>> megs I get
>> this back from MochiWeb:
>> {"error":"EXIT","reason":"{body_too_large,6099917}"}
>> I poked around in the MochiWeb source and it looks like there's a  
>> setting
>> for this, but I haven't explored further yet.
>> I tried to use chunked encoding but I seem to run into a socket  
>> error issue
>> with httplib: 104, connection reset by peer. Seems like MochiWeb  
>> doesn't
>> like that very much, but that could just be httplib. Still trying  
>> to work
>> through that...
>> In any event, has anyone pushed in large attachments with the new  
>> api? Is
>> there something I'm missing? Thanks...
> The current limit for request sizes is 1MB (didn't we up that to  
> 4GB? Christopher,
> maybe that got lost with recent MochiWeb updates?).

No, couch_httpd uses the higher 4GB limit (MAX_DOC_SIZE) explicitly in  
most places. The default in Mochiweb is still 1MB.

Christopher Lenz
   cmlenz at

View raw message