On Mon, Aug 27, 2012 at 10:10:13PM -0700, Ben Pfaff wrote:
> On Wed, Aug 22, 2012 at 07:07:05PM +0900, Isaku Yamahata wrote:
> > eventlet/gevent doesn't work well with select.poll because it blocks.
> > So ovsdb python binding can't be used with eventlet/gevent.
> > So monkey patch to select.poll with a function that emulate select.poll
> > with select.select.
> > 
> > Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp>
> 
> What's going to use this?

My motivation is to use ovsdb python binding in openstack quantum which
uses eventlet (I have Ryu plugin in mind, but I think other plugin can
benefit) and in Ryu which uses gevent.


> collections.defaultdict was added in Python 2.5 but the OVS Python code
> has to work with Python 2.4 to support XenServer, which has Python 2.4.

I'll remove defaultdict.


> Why is this a "monkey" patch?

You're asking about the terminology of "monkey". It is commonly used to refer
to dynamic patching.
http://stackoverflow.com/questions/5626193/what-is-monkey-patching
-- 
yamahata
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to