On Fri, Jan 16, 2009 at 11:15 AM, Benoit Chesneau <bchesn...@gmail.com> wrote:
> On Fri, Jan 16, 2009 at 1:07 AM, Damien Katz <dam...@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 :

beno...@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 :
beno...@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

Reply via email to