cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 15 Mar 2013 20:19:25 +0100

On Fri, Mar 15, 2013 at 02:07:47PM +0200, Chrysovaladis Datsios wrote:
> > W/o looking at your code in details, why isn't this returning
> > 'CURLE_OUT_OF_MEMORY'?
> > --gv
>
> According to Dan Fandrich:
> ---------------------------------------
> And I'm not sure CURLE_OUT_OF_MEMORY is the
> best error code here--the system is technically not out of memory. Maybe
> CURLE_BAD_FUNCTION_ARGUMENT?

That was in reference to the check if the given headers were too large to fit
into the fixed-size buffer. If a malloc() fails, clearly the system is out of
memory.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-15