cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to reduce the send buffer size in Curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Oct 2009 15:56:12 +0100 (CET)

On Fri, 23 Oct 2009, Sreedhar Kamishetti wrote:

> How can I reduce the send buffer size in Curl before sending a file to a
> HTTPS server?

curl has no such option. (libcurl does though)

> Router where HTTPS Server is running is very memory constraint. So, we
> cannot use the bigger values for send buffer size. I think by default it is
> using 16k.

Are you running curl embedded in the router? As if you're not, the buffer size
of curl shouldn't really affect the memory usage in the router you're talking
to.

> Is there a configurable option that I can use or if code change is required,
> what is the easy way to change code and use it?

Either way. There's a curl_easy_setopt() you can use and there's a define in
the public header you can change (and recompile).

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-26