Piotr Kliczewski has uploaded a new change for review.

Change subject: jsonrpc: check whether the connection is still open before 
processing
......................................................................

jsonrpc: check whether the connection is still open before processing


Change-Id: I53c175882576eded3d4ad1c952148879efe2075e
Signed-off-by: pkliczewski <[email protected]>
---
M lib/yajsonrpc/__init__.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/20/42920/1

diff --git a/lib/yajsonrpc/__init__.py b/lib/yajsonrpc/__init__.py
index 68af242..dc26ca5 100644
--- a/lib/yajsonrpc/__init__.py
+++ b/lib/yajsonrpc/__init__.py
@@ -506,6 +506,9 @@
             return
 
         try:
+            if ctx.connection.is_closed():
+                self.log.warning("Ignoring message connection already closed")
+                return
             params = req.params
             server_address = ctx.connection.get_local_address()
             self._bridge.register_server_address(server_address)


-- 
To view, visit https://gerrit.ovirt.org/42920
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I53c175882576eded3d4ad1c952148879efe2075e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to