python/ovs/poller: use select.select instead of select.poll.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 5 Sep 2012 10:38:26 +0000 (19:38 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Sep 2012 16:10:44 +0000 (09:10 -0700)
commited815d9bd28422a490fe370d7804d24bcd676806
tree72645159cd1b85c176cbb085467c71636934f484
parent78a3fff6c3b2f7943bcfd7301c666934834d2a0e
python/ovs/poller: use select.select instead of select.poll.

eventlet/gevent doesn't work well with select.poll because select.poll blocks
python interpreter as a whole instead of switching from the current thread
which is about to block to other runnable thread.
So ovsdb python binding can't be used with eventlet/gevent.
Emulate select.poll with select.select because using python means that
performance isn't so important.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
python/ovs/poller.py