cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: public URL accepting POST multipart/form-data file upload?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 19 Jul 2004 20:49:13 +0200 (CEST)

On Sun, 18 Jul 2004, Mohun Biswas wrote:

> Solved. For the record, it turns out that Tomcat (my development web
> container on the server side) has a config parameter called
> "connectionTimeout" which out of the box is set to 20 seconds. When the
> uploaded file reaches a certain size it takes more than 20 seconds for
> libcurl to prepare the file part (lots of brk() system calls) and the server
> closes the connection. Thanks G-d for truss on Solaris.

If you try the CVS version of libcurl, you'll be able to do formposts like
this only using a fraction of that memory (since it isn't created fully in ram
first anymore).

> One thing for libcurl though: is there a reason it couldn't report something
> along the lines of "Server closed the connection" rather than "Empty reply
> from server"? I probably would have been on the right track much sooner if
> it had. You can see in the truss output that the errno (ECONNRESET) is
> pretty clear:

Sure, I'll welcome your patch! :-)

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-19