curl-and-python
Re: Function to retrieve mulltiple URLs asyncrously
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 11 Mar 2005 08:38:47 +0100 (CET)
Date: Fri, 11 Mar 2005 08:38:47 +0100 (CET)
On Thu, 10 Mar 2005, gf gf wrote:
> Also, I was having a bit of a problem with getting
> stuck at the select() - so I crudely modified it. I'm
> sure someone knows how to do it the right way.
I don't know much python, but...
while 1:
ret, num_handles = m.perform()
if ret != pycurl.E_CALL_MULTI_PERFORM:
break
...this looks very wrong. m.perform() can also return OK without that meaning
that you should consider the transfers complete.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-and-pythonReceived on 2005-03-11