curl-library
Re: Question on how I should use curl_multi_perform
Date: Thu, 14 Jan 2010 13:24:37 -0500
On Thu, Jan 14, 2010 at 1:12 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 14 Jan 2010, CP YEH wrote:
>
>> I have a question on how I should use curl_multi_perform(). I copied the
>> code from the web to use multi form as follows. Every now and then I noticed
>> that my application sort of hangs so when I straced it, I found that it
>> keeps calling select and gets timeout and it seems to me that the the code
>> never gets to break out the following while loop.
>
> Well, that sounds like a stalled transfer. What protocol are you using? What
> libcurl version on what platform?
>
First of all, thank you for your reply.
I am using HTTPS to call POST.
I am running my application on 64bit Linux Red hat distribution
4.1.2-46 and here is what I got from rpm -qa.
curl-devel-7.15.5-2.1.el5_3.5
curl-7.15.5-2.1.el5_3.5
Please let me know if I am missing anything or if I need to give your
more information.
Thank you.
>> So I was wondering if there is anything I should add to prevent such
>> situations. select() is returning zero so I was not sure what else I
>> should check.
>
> That's a timeout which means nothing happened on the sockets that are being
> monitored...
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-14