Pass timeout in milliseconds to timer_wait
The OVS Python library expects milliseconds to be passed to
timer_wait and we were passing the value in seconds. This
just means that the poll() wakes up more often than it needs
to. Changing this probably improves performance a little, but
doesn't change any user observable behavior.
Change-Id: Iae4b682c0774e749eb48cde67cd9748d7dfe053c
(cherry picked from commit 47fd1bc315
)
This commit is contained in:
parent
938c0cce41
commit
dcea3f349c
|
@ -93,7 +93,7 @@ class Connection(object):
|
|||
self.poller.fd_wait(self.txns.alert_fileno, poller.POLLIN)
|
||||
#TODO(jlibosva): Remove next line once losing connection to ovsdb
|
||||
# is solved.
|
||||
self.poller.timer_wait(self.timeout)
|
||||
self.poller.timer_wait(self.timeout * 1000)
|
||||
self.poller.block()
|
||||
self.idl.run()
|
||||
txn = self.txns.get_nowait()
|
||||
|
|
Loading…
Reference in New Issue