And what do you use to upload files bigger than 4 GB ?
2009/1/17 Benoit Chesneau <[email protected]> > On Fri, Jan 16, 2009 at 10:54 PM, Patrick Antivackis > <[email protected]> wrote: > > Damien, > > For what i saw in previous tests, if you not use the chunk method, then > you > > get an error caught by mochiweb (so no error in couchdb). > > It occurs in mochiweb_request line 138 with the gen_tcp:recv call : > > > > recv(Length, Timeout) -> > > case gen_tcp:recv(Socket, Length, Timeout) of > > {ok, Data} -> > > put(?SAVE_RECV, true), > > Data; > > _ -> > > exit(normal) > > end. > > > > > > The answer catched by the case _ is in fact {error, enomem} > > > > There is no error in couchdb as the exit is "normal" !!! > > > > For what i read (see answers from > > http://www.google.fr/search?q=16M+gen_tcp%3Arecv), if Length is too big > > (some says 16M, for me it's 64M) gen_tcp:recv sends back an enomem error. > > > > > > > > well I can upload files bigger than 4GB here without chunk method. I > only used it because of curl. Though chunk would allow better control > of what is uploaded whith such big uploads I guess. > > > - benoƮt >
