cURL / Mailing Lists / curl-library / Single Mail

curl-library

multi-app example not working

From: Miles Benson <mlists_at_paddedcell.com>
Date: Sun, 14 Nov 2010 10:53:42 -0000

Hi All,

I built libcurl 7.21.2 (32 bit, windows, statically linked, debug) to try
the curl_multi* API using multi-app.c, but it loops forever because

    rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);

keeps returning 0.

I have tried it with both one and two handles, and POST and GET http
variants (but not ftp as in the example code).

If I substitute eg

curl_easy_perform(handles[HTTP_HANDLE]);
return 0;

just before

multi_handle = curl_multi_init();

then I can prove that the URL/server/curl_easy* stuff all works just fine.

Does anyone have any ideas?

Thanks
Miles

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-14