lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

used chunked transfer to put #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a document and attachment(s) > 1MB (say from a dump/load cycle)
2. attempt to put the document and attachment(s) db[id] = doc
3.

What is the expected output? What do you see instead?
expect a successful put, instead you receive
a connection reset from couchd-python and the couchdb log shows
Uncaught error in HTTP request: {exit,{body_too_large,content_length}}

What version of the product are you using? On what operating system?
couchdb-python 0.5
couchdb - Apache CouchDB 0.9.0a746225

Please provide any additional information below.
You can hack around this by modifying 
src/mochiweb/mochiweb_request.erl > -define(MAX_RECV_BODY, (1024*1024)) 
to somthing bigger, say -define(MAX_RECV_BODY, (1024*1024*16))

Original issue reported on code.google.com by dunde...@gmail.com on 21 Feb 2009 at 4:39

GoogleCodeExporter commented 8 years ago
Code snippet to demonstrate error - error: (104, 'Connection reset by peer')

from couchdb.client import Database
dba = Database('http://localhost:5984/test_dumpload_a')
for i in range(2):
    docid = dba.create({'testdoc':i,
                        'datum':'@'* 1024*1024*100})

The following will error out on the first document

Original comment by dunde...@gmail.com on 24 Feb 2009 at 1:47

GoogleCodeExporter commented 8 years ago
This looks like a regression in CouchDB itself:

$ ls -lh big.json
-rw-r--r--  1 chris  staff   1,1M 24 Feb 14:36 big.json

$ curl -T big.json http://localhost:5984/testing/big
curl: (55) Send failure: Broken pipe
{"error":"body_too_large","reason":"content_length"}

Original comment by cmlenz on 24 Feb 2009 at 1:45

GoogleCodeExporter commented 8 years ago
This issue can be closed, it was a couchdb proper issue and not a 
couchdb-python error.
https://issues.apache.org/jira/browse/COUCHDB-266

Original comment by dunde...@gmail.com on 24 Feb 2009 at 1:53