[Spice-devel] [PATCH spice-server 06/10] reds: disconnect the session when an essential channel is disconnected
Yonit Halperin
yhalperi at redhat.com
Tue May 21 11:52:14 PDT 2013
On 05/20/2013 10:39 PM, bigclouds wrote:
> 1.is there a solution now?
> server may disconnect some of spice channels, but client does not
> reconnect , how to do with this?
> close client or let client reconnect?
This patch hasn't been pushed. We concluded that the policy of
disconnecting the client when one of the channels shutdown should be on
the client side.
> 2.
> where is the code from which we can get socket signal(error,EPIPE..)
> when channel disconnected.
For most of the channels, you can find it in red_channel.c . For the
sound and record channels, it is in snd_worker.c (snd_send_data,
snd_receive).
> thanks
>
>
>
> 在 2013-05-08 23:57:54,"Marc-André Lureau" <marcandre.lureau at gmail.com>
> 写道:
>
>
> On Wed, May 8, 2013 at 5:03 PM, Yonit Halperin <yhalperi at redhat.com
> <mailto:yhalperi at redhat.com>> wrote:
>
> I can live with that. Maybe we should add to spice-gtk a user
> notification when a channel gets suddenly disconnected.
>
>
>
> Since UI don't share same designs, the best place for such dialog
> is virt-viewer (or Boxes etc).
>
> We already have a similar channel-event handler for the main channel
> in virt-viewer-session-spice.c, this can easily be extended to cover
> other disconnections
>
> --
> Marc-André Lureau
>
>
>
More information about the Spice-devel
mailing list