mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
move channel window setting to config_socket
Make common_graphics_channel_new_client smaller Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
a84a433e08
commit
c699e4db3d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user