cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem Related to progresscallback function

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Jul 2008 11:23:37 -0700

On Sat, Jul 19, 2008 at 01:24:03PM +0530, Ajeet kumar.S wrote:
> Dear all,
>
> I wrote progress function and I set the parameter which is written below:
>
> curl_easy_setopt(curl, CURLOPT_NOPROGRESS, FALSE);
> curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION,Sir_Progress_Fun);
> curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, stop_content);
>
> int Application_Progress_Fun(int stop_content, CURL *curl )
> {
> Media_Content_Stop(curl);
> Return(0);
> }
>
> Here Media_Content_Stop function we are setting WMSP header to stop streaming
> server and performing operation.
>
> But I observed at time of curl_easy_perform data is going to start from server
> but never Application_Progress_Fun is called and control always in curl_easy
> perform.
>
> Please tell me how we can write progresscallback function by which we can
> control the curl_easyperform() to process or send another response server with
> in single thread.

There was a problem before 7.18.1 that caused the first progress callback to
be delayed when POSTing. What version are you using? You didn't actually
show us the function Sir_Progress_Fun, but there is a limited number
of curl functions that you are allowed to call from it.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-22