curl-and-python
Re: pycurl update for multi interface
Date: Mon, 14 Oct 2013 19:03:25 -0400
On Wed, 9 Oct 2013 09:59:17 -0700
Dima Tisnek <dimaqq_at_gmail.com> wrote:
> hey, browsed through C multi interface api,
> there are quite a few options marked (Added in 7.30.0)
> mostly to do with http pipelining.
>
> these too should be added to pycurl.
Yes, please send a patch/pull request.
> while on the subject, should pycurl provide an easy/sample loop around
> perform()/fdset()/select()/info_read() calls? for those of us who just
> want to load a bunch of requests into a multi object and get the
> results?
>
> an api could be smth like
> completed_handles = multi_handle.perform(timeout=None)
> # block up to timeout seconds (float) or until some request returns
> (well or badly)
> # return [] immediately or wait or even raise an exception if
> multi_handle is empty (?)
Providing a simplified interface to common operations sounds like a
good idea in principle.
Oleg
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-10-15