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

Marc-André Lureau marcandre.lureau at gmail.com
Tue Jan 10 14:39:23 PST 2012


I am assuming semi-seamless migration work after this patch. Didn't tested it.

On Tue, Jan 10, 2012 at 9:54 PM, Yonit Halperin <yhalperi at redhat.com> wrote:
> ---
>  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
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list