<div dir="ltr">ack (somehow I missed that we already had a is_low_bandwidth flag in migration data!)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 4:06 PM, Yonit Halperin <span dir="ltr"><<a href="mailto:yhalperi@redhat.com" target="_blank">yhalperi@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">rhbz#956345<br>
<br>
After a spice session has been migrated, we don't retest the network<br>
(user experience considerations). Instead, we obtain the is_low_bandwidth flag<br>
from the src-server, via the migration data.<br>
Before this patch, if we migrated from server s1 to s2 and then to s3,<br>
and if the connection to s1 was a low bandwidth one, we erroneously<br>
passed is_low_bandwidth=FALSE from s2 to s3.<br>
<br>
Cc: Marc-André Lureau <<a href="mailto:marcandre.lureau@redhat.com">marcandre.lureau@redhat.com</a>><br>
---<br>
 server/red_worker.c | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/server/red_worker.c b/server/red_worker.c<br>
index be53c1d..247f153 100644<br>
--- a/server/red_worker.c<br>
+++ b/server/red_worker.c<br>
@@ -10199,6 +10199,9 @@ static int display_channel_handle_migrate_data(RedChannelClient *rcc, uint32_t s<br>
     } else {<br>
         spice_critical("restoring global lz dictionary failed");<br>
     }<br>
+<br>
+    dcc->common.is_low_bandwidth = migrate_data->low_bandwidth_setting;<br>
+<br>
     if (migrate_data->low_bandwidth_setting) {<br>
         red_channel_client_ack_set_client_window(rcc, WIDE_CLIENT_ACK_WINDOW);<br>
         if (dcc->common.worker->jpeg_state == SPICE_WAN_COMPRESSION_AUTO) {<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.4<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau
</div>