cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Should I always call curl_multi_socket_all() after curl_multi_add_handle()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Jun 2008 11:27:42 +0200 (CEST)

On Fri, 13 Jun 2008, ??? wrote:

> Should I always call curl_multi_socket_all() after curl_multi_add_handle()

No.

> i see this in the example code hiperfifo.c (in the function static void
> new_conn(char *url, GlobalInfo *g ))

Yes, that was due to what best can be described as a design flaw in the early
multi_socket implementation that is fixed in recent libcurl versions.

You should basically never need to call curl_multi_socket_all().

(And we should update the docs to reflect this...)

-- 
  / daniel.haxx.se
Received on 2008-06-13