cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Closing connection #0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Apr 2008 22:09:09 +0200 (CEST)

On Fri, 11 Apr 2008, Peter Evertz wrote:

> return -1; /* no more data left to deliver */

Right, but the docs says you should return 0 then.

The callback returns an unsigned value so your -1 becomes a very large number
and recent libcurls consider you returning a value larger than the buffer size
as a sign of a sever failure and will return error.

You should really check the return code from curl_easy_perform() as that will
offer clues when things go wrong.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-11