cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Can't connect: how to find out why ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 8 Oct 2002 17:48:42 +0200 (MET DST)

On Tue, 8 Oct 2002, Vincent Penquerc'h wrote:

> > CURLOPT_ERRORBUFFER to get the error text as well, it'll probably tell
> > you something.
>
> Hmm, assumed it'd get send to the debug function ?
> Thanks for the info

Hm. Well, you do have a point. I'll make that info get sent to the debug
function in the next version! ;-)

> > > code=curl_easy_setopt(data->handle,CURLOPT_BUFFERSIZE,block_size);
> >
> > Are you sure you want to limit the read buffer size like this?
>
> I got the impression from the docs that, if it wasn't to curl's liking, it
> would use another one anyway. It's just that my streaming buffers are that
> size, so it would be just neat if I would get data in chunks that size. Can
> it cause problems in some cases ?

No, it should be ok. I was only a bit puzzled, but setting it to your
underlying buffer size might be a good idea. It will possibly slow down the
transfer somewhat, but I guess that is not a problem in your case anyway!

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-08