cURL / Mailing Lists / curl-library / Single Mail


Re: Calling "curl_multi_add_handle" from within a callback

From: Daniel Stenberg <>
Date: Thu, 8 Jan 2009 13:10:21 +0100 (CET)

On Thu, 8 Jan 2009, Tsachi wrote:

> (I am using "libcurl 7.19.1" with c-ares 1.5.3 (over linux)). My application
> is registered for both CURL_WRITEDATA and CURL_SOCKOPTDATA callbacks. When
> the callbacks are triggered, I want to add new easy handles to my main multi
> handle. Is it OK to use "curl_multi_add_handle" from within the callbacks or
> should I do it in my main select loop?

It should be perfectly safe to do that.

Received on 2009-01-08