cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: calling "multi-single.c" example in an endless loop?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 17 Mar 2013 00:05:26 +0100 (CET)

On Fri, 15 Mar 2013, Sven Geggus wrote:

> starting from the multi-single.c example I try to convert this to something
> like this:
>
> curl_easy_setopt(http_handle, CURLOPT_URL, "my-url");
> while (1) {
> ..
> rest of example code
> ..
> }
>
> Unfortunately I did not get this to work without also calling
> curl_multi_init/curl_multi_cleanup inside the loop. This leeds to a
> permanent reonnection of the tcp socket.

So can you show us the complete program you used that didn't work? And which
libcurl version are you using? On what platform?

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