On 12/3/21 16:04, Terry Wilson wrote: > When using eventlet monkey_patch()'d code, greenthreads can be > blocked on connection for several seconds while the database > contents are parsed. Eventlet recommends adding a sleep(0) call > to cooperatively yield in cpu-bound code. asyncio code has > asyncio.sleep(0). This patch adds an API method that defaults to > doing nothing, but can be overridden to yield as needed. > > Signed-off-by: Terry Wilson <twil...@redhat.com> > (cherry picked from commit d28c5ca57650d6866453d0adb9a2e048cda21a86) > --- > NEWS | 6 ++++++ > python/ovs/db/idl.py | 11 +++++++++++ > 2 files changed, 17 insertions(+)
Makes sense. Applied to branch-2.15. Thanks! Best regards, Ilya Maximets. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev