Piotr Kliczewski has uploaded a new change for review.

Change subject: stomp: resetting outgoing buffer
......................................................................

stomp: resetting outgoing buffer

When we loose connectivity there can be still heartbeat frame in
outgoing buffer and we need to be sure that we clear the buffer before
responding with CONNECTED frame.


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


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/23/39723/1

diff --git a/lib/yajsonrpc/stomp.py b/lib/yajsonrpc/stomp.py
index ebd2219..1716a9c 100644
--- a/lib/yajsonrpc/stomp.py
+++ b/lib/yajsonrpc/stomp.py
@@ -419,6 +419,7 @@
         self._outgoing_heartbeat_in_milis = outgoing
 
     def handle_connect(self, dispatcher):
+        self._outbuf = None
         self._frameHandler.handle_connect(self)
 
     def handle_read(self, dispatcher):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29f371031ddfd18aa45a395fcfa50f994da8537c
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