cURL / Mailing Lists / curl-library / Single Mail

curl-library

Multi_add_handle question

From: Tarendash, David <David.Tarendash_at_gs.com>
Date: Mon, 30 Aug 2004 16:56:18 -0400

Hi all,
Simple question here (I assume).

        CURLMcode ret;

        if ((ret = curl_multi_add_handle(m_pCURLM, pCURL)) != (CURLMcode)0)
{
                Log("CCURLInfo::AddHandle: curl_multi_add_handle failed
[%d:%s]", ret, curl_multi_strerror(ret));
                return (false);
        }

Is returning the following:
        CCURLInfo::AddHandle: curl_multi_add_handle failed [-1:please call
curl_multi_perform() soon]

If I have what I assume is a valid CURL and CURLM object (the init's
succeeded), is this a valid response? Most of the examples I have seen
don't bother to check for the response to multi_add_handle().

Thank you in advance,

David Tarendash
Received on 2004-08-30