cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-python mailing list Archives

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)

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-python
Received on 2005-03-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET