[Spice-devel] [PATCH 0.8 4/9] server: reset read/write filter on agent/client disconnect

Alon Levy alevy at redhat.com
Fri Apr 1 08:30:49 PDT 2011


On Fri, Apr 01, 2011 at 05:13:04PM +0200, Hans de Goede wrote:
> The agent message filter keeps track of messages as they are being send
> reset the relevant filter to its initial state when one of the 2 ends
> of the agent<->client "tunnel" disconnects.

I'm guessing this is related to my windows agent woes - did you test
this with the windows agent?

Anyway,

ACK

> ---
>  server/reds.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 088683b..3c7077a 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -713,6 +713,7 @@ static void reds_reset_vdp()
>          ring_add(&state->read_bufs, &state->current_read_buf->link);
>          state->current_read_buf = NULL;
>      }
> +    agent_msg_filter_init(&state->read_filter, agent_copypaste);
>      state->client_agent_started = FALSE;
>  }
>  
> @@ -743,6 +744,7 @@ static void reds_disconnect()
>      red_printf("");
>      reds->disconnecting = TRUE;
>      reds_reset_outgoing();
> +    agent_msg_filter_init(&reds->agent_state.write_filter, agent_copypaste);
>  
>      if (reds->agent_state.connected) {
>          SpiceCharDeviceInterface *sif;
> -- 
> 1.7.4.2
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list