cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Unable to send/receive messages using curl (version 7.28.1)

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 22 Mar 2013 13:50:56 +0100

"subrahmanya" <sum.sagar_at_gmail.com> wrote:

> When I run my application I get the value "-1" for "nread". This was not
> considered as error till 7.18.0 release. From release 7.18.0 onwards this
> value is treated as error because of the condition "if((size_t)nread >
> buffersize)". And hence my application breaks.

Do you have a read callback set with 'CURLOPT_READFUNCTION'? If so,
it could be returning a wrong value. Show it to us.

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