[Spice-devel] [PATCH 2/9] move channel window setting to config_socket
Jonathon Jongsma
jjongsma at redhat.com
Fri Aug 5 19:05:20 UTC 2016
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Thu, 2016-08-04 at 16:17 -0500, Jonathon Jongsma wrote:
> From: Frediano Ziglio <fziglio at redhat.com>
>
> Make common_graphics_channel_new_client smaller
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/red-worker.c | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/server/red-worker.c b/server/red-worker.c
> index 9238632..f15f67a 100644
> --- a/server/red-worker.c
> +++ b/server/red-worker.c
> @@ -434,6 +434,10 @@ static int
> common_channel_config_socket(RedChannelClient *rcc)
> spice_warning("setsockopt failed, %s", strerror(errno));
> }
> }
> + // TODO: move wide/narrow ack setting to red_channel.
> + red_channel_client_ack_set_client_window(rcc,
> + ccc->is_low_bandwidth ?
> + WIDE_CLIENT_ACK_WINDOW : NARROW_CLIENT_ACK_WINDOW);
> return TRUE;
> }
>
> @@ -454,14 +458,8 @@ CommonGraphicsChannelClient
> *common_graphics_channel_new_client(CommonGraphicsCh
> if (!rcc) {
> return NULL;
> }
> - CommonGraphicsChannelClient *common_cc =
> (CommonGraphicsChannelClient*)rcc;
> common->during_target_migrate = mig_target;
> -
> - // TODO: move wide/narrow ack setting to red_channel.
> - red_channel_client_ack_set_client_window(rcc,
> - common_cc->is_low_bandwidth ?
> - WIDE_CLIENT_ACK_WINDOW : NARROW_CLIENT_ACK_WINDOW);
> - return common_cc;
> + return (CommonGraphicsChannelClient*)rcc;
> }
>
>
More information about the Spice-devel
mailing list