Re: [PATCH spice-gtk 06/13] migration: set connecting state before fd request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 12, 2014 at 06:49:50PM +0100, Marc-André Lureau wrote:
> On Wed, Nov 12, 2014 at 6:35 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx>
> wrote:
> 
> > 'git grep spice_channel_disconnect' gives:
> > doc/reference/spice-gtk-sections.txt:spice_channel_disconnect
> > gtk/channel-main.c:    spice_channel_disconnect(channel,
> > SPICE_CHANNEL_SWITCHING);
> > gtk/map-file:spice_channel_disconnect;
> > gtk/spice-channel.c:    spice_channel_disconnect(channel,
> > SPICE_CHANNEL_CLOSED);
> > gtk/spice-channel.c:    spice_channel_disconnect(channel,
> > SPICE_CHANNEL_NONE);
> > gtk/spice-channel.c: * spice_channel_disconnect:
> > gtk/spice-channel.c:void spice_channel_disconnect(SpiceChannel *channel,
> > SpiceChannelEvent reason)
> > gtk/spice-channel.h:void spice_channel_disconnect(SpiceChannel *channel,
> > SpiceChannelEvent reason);
> > gtk/spice-glib-sym-file:spice_channel_disconnect
> > gtk/spicy.c:    spice_channel_disconnect(channel, SPICE_CHANNEL_CLOSED);
> >
> > so the 'reason' argument to spice_channel_disconnect() will never
> > indicate an error.
> >
> 
> I think the code path you want to get triggered is the 'c->has_error =
> > TRUE' part of
> > spice_channel_disconnect() (which is not called when c->state is
> > SPICE_CHANNEL_STATE_UNCONNECTED).
> > Once 'has_error' is set to TRUE, this will trigger the emission of an
> > error in spice_channel_iterate()
> >
> 
> 
> Any reason other than SPICE_CHANNEL_OPENED is enough to abort the migration
> (migrate_channel_event_cb).

Ah, this is the bit I was missing thanks! The commit log needs to be
much more detailed and accurate, and mention explicitly the various code
paths involved to trigger the error, where the looping occurs, ...

Christophe

Attachment: pgpogB0laCR5Y.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]