| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Bug in curl multi DONE->COMPLETED state transition?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Aug 2008 23:24:00 +0200 (CEST)
On Wed, 6 Aug 2008, Albert Lee wrote:
> It appears that our curl stack was actually not handling timeouts correctly
Well, in my mind event-based systems such as the multi_socket API are all
> The documentation should probably state that timeouts should be scheduled
Really? how else can a timeout be scheduled? _within_ the callback?
I'd be happy if you would write a full sentence/replacement for the manual
> and specify whether -1 should be handled the same way as for
Actually, in the callback case the -1 is actually no timer at all. For real.
> BTW, the curl_multi_timeout manual still refers to an nonexistant 'easy'
Aha, thanks for pointing this out. I'm editing it just now.
> I'm guessing timeouts should be scheduled in the same part of the event loop
curl_multi_timeout() would not normally be used when you use the
But yes, your event-loop should wait for events and timeouts, and libcurl will
> Unfortunately our event loop is totally isolated from the curl code, which
You "just" need to add timeout functionality to it as well...
-- / daniel.haxx.seReceived on 2008-08-06 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info