cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: U-BLENDERAdministrator <vincent.penquerch_at_artworks.co.uk>
Date: Tue, 8 Oct 2002 18:07:19 +0100

On Tue, Oct 08, 2002 at 06:07:24PM +0200, Daniel Stenberg wrote:
> > Doesn't get set at all :/
>
> Weird. I consider that a bug.

Well, I think it's rather my own stupidity :/

I've printf'd inside libcurl, and all seems to be fine. In fact, the
first time I call
  while(CURLM_CALL_MULTI_PERFORM==curl_multi_perform(data->multi,&count));
it returned without reading anything and this closed connection message.
I think it returns without reading anything because it's async, and thus
has not received anything yet. I'd have expected it to have filled the
buffer using the write function that I specify, and, since this function
was not called and the closed connection message, I assumed it could not
connect (and this, since curl did succeed, that it was some difference
between curl and my code). But it is just that, since nothing was read,
libvorbisfile doesn't recognize the data (since there is none), and fails,
but I did not see it at first because it's a callback, so doesn't appear
in the normal program flow of my code. It probably worked fine at home
because the HTTP server was localhost, thus it had a lightning fast
connection.
So, I apologize for the noise, libcurl behaves perfectly. It's just that
my new code lacks some defensive coding before I can release it :)

Thanks

--
Vincent
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-08