Nir Soffer has uploaded a new change for review. Change subject: betterAsyncore: Fix event loop data stealing [2/2] ......................................................................
betterAsyncore: Fix event loop data stealing [2/2] In this patch we override asyncore.dispatcher.del_channel() and set dispatcher.connected to False after a dispather was removed from the event loop. This breaks out of the pending data read loop in Dispatcher.handle_read_event(). Change-Id: I5978b58ed47b7a3836f19b3b40fe857e43f76bae Signed-off-by: Nir Soffer <[email protected]> --- M lib/yajsonrpc/betterAsyncore.py 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/39514/1 diff --git a/lib/yajsonrpc/betterAsyncore.py b/lib/yajsonrpc/betterAsyncore.py index ad11cc1..f54d580 100644 --- a/lib/yajsonrpc/betterAsyncore.py +++ b/lib/yajsonrpc/betterAsyncore.py @@ -137,6 +137,10 @@ else: raise + def del_channel(self, map=None): + asyncore.dispatcher.del_channel(self, map) + self.connected = False + class AsyncoreEvent(asyncore.file_dispatcher): def __init__(self, map=None): -- To view, visit https://gerrit.ovirt.org/39514 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5978b58ed47b7a3836f19b3b40fe857e43f76bae Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
