[Spice-devel] [PATCH spice-gtk v2 4/4] migration: swap serials and mini header support when swapping peers.

Yonit Halperin yhalperi at redhat.com
Tue Jan 10 12:54:37 PST 2012


---
 gtk/spice-channel.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index f397c22..8c14a6c 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2535,16 +2535,25 @@ void spice_channel_swap(SpiceChannel *channel, SpiceChannel *swap)
         SSL_CTX *ctx = c->ctx;
         SSL *ssl = c->ssl;
         SpiceOpenSSLVerify *sslverify = c->sslverify;
+        uint64_t in_serial = c->in_serial;
+        uint64_t out_serial = c->out_serial;
+        gboolean use_mini_header = c->use_mini_header;
 
         c->sock = s->sock;
         c->ctx = s->ctx;
         c->ssl = s->ssl;
         c->sslverify = s->sslverify;
+        c->in_serial = s->in_serial;
+        c->out_serial = s->out_serial;
+        c->use_mini_header = s->use_mini_header;
 
         s->sock = sock;
         s->ctx = ctx;
         s->ssl = ssl;
         s->sslverify = sslverify;
+        s->in_serial = in_serial;
+        s->out_serial = out_serial;
+        s->use_mini_header = use_mini_header;
     }
 
 #if HAVE_SASL
-- 
1.7.6.4



More information about the Spice-devel mailing list