couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damien Katz <dam...@apache.org>
Subject Re: streaming attachments writes
Date Fri, 16 Jan 2009 12:55:57 GMT
Chunked isn't allowed right now. Why are you sending a file chunked?

-Damien

On Jan 16, 2009, at 5:27 AM, Benoit Chesneau wrote:

> On Fri, Jan 16, 2009 at 11:15 AM, Benoit Chesneau  
> <bchesneau@gmail.com> wrote:
>> On Fri, Jan 16, 2009 at 1:07 AM, Damien Katz <damien@apache.org>  
>> wrote:
>>> I checked in streaming attachment writes for attachment uploads  
>>> (ie PUT
>>> /db/docid/attachment.txt ...). This allows that huge files can be  
>>> uploaded
>>> without CouchDB buffering it to memory, making is possible to uploa
>
>
>
>> Thanks for this update :) I've just tested this morning, here on a  
>> 2GB
>> of ram machine, it didn''t work with curl in chunked transfert
>> encoding. It doesn't work either in chunked mode with one script I
>> have. However it works with this script based on py-restclient
>> (attached) in normal mode.
>>
>> Thanks for this progress :)
>>
>> - benoit
>>
>
> hum I forgot some details indeed (spotted by jan on irc) SO here is
> error from curl :
>
> benoitc@pollen:~$ curl -T test.mp3 --header "Accept: application/json"
> --header "Content-Type: application/octet-stream" --header
> "Transfer-Encoding: chunked" --header "Content-Length: 671088640"
> --header "Expect:" --header "Connection: keep-alive" --header
> "Keep-Alive: 300" -v
> http://127.0.0.1:5984/test/blah/test640?rev=2737377012
> * About to connect() to 127.0.0.1 port 5984 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
>> PUT /test/blah/test640?rev=2737377012 HTTP/1.1
>> User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2  
>> OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
>> Host: 127.0.0.1:5984
>> Accept: application/json
>> Content-Type: application/octet-stream
>> Transfer-Encoding: chunked
>> Content-Length: 671088640
>> Connection: keep-alive
>> Keep-Alive: 300
>>
> * Empty reply from server
> * Connection #0 to host 127.0.0.1 left intact
> curl: (52) Empty reply from server
> * Closing connection #0
>
> no error from couchdb
>
>
>
> Error in python client :
> benoitc@pollen:~$ python test.py
>
> restclient.rest.RequestError: (28, 'Operation timed out after 20000
> milliseconds with 0 bytes received')
>
>
> Seem like Couchdb don't send any aswer to the client here .
>
> - benoƮt


Mime
View raw message