mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 16:29:56 +00:00
server: Don't reset the latency before showing it in the invalid net test error message.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
This commit is contained in:
parent
071647780d
commit
1a8a7df286
@ -971,11 +971,11 @@ static int main_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, uint
|
||||
mcc->net_test_id = 0;
|
||||
if (roundtrip <= mcc->latency) {
|
||||
// probably high load on client or server result with incorrect values
|
||||
spice_printerr("net test: invalid values, latency %" PRIu64
|
||||
" roundtrip %" PRIu64 ". assuming high"
|
||||
" bandwidth", mcc->latency, roundtrip);
|
||||
mcc->latency = 0;
|
||||
mcc->net_test_stage = NET_TEST_STAGE_INVALID;
|
||||
spice_printerr("net test: invalid values, latency %" PRIu64
|
||||
" roundtrip %" PRIu64 ". assuming high"
|
||||
"bandwidth", mcc->latency, roundtrip);
|
||||
red_channel_client_start_connectivity_monitoring(&mcc->base,
|
||||
CLIENT_CONNECTIVITY_TIMEOUT);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user