Skip to content
Snippets Groups Projects
Commit 5e3a6ca2 authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

lib/selection_iter.c: fix the last stand switch to UDP

Previously, qry->flags.TCP flag was incorectly set, which led
to incorrect logging and maybe other troubles down the line.
parent 9679a48b
Branches
Tags v5.3.0
1 merge request!1150selection_iter.c: fix the last stand switch to UDP
Pipeline #78237 failed with stages
in 1 hour, 4 minutes, and 4 seconds
......@@ -286,11 +286,12 @@ void iter_choose_transport(struct kr_query *qry, struct kr_transport **transport
}
if (*transport &&
(*transport)->protocol==KR_TRANSPORT_TCP &&
(*transport)->protocol == KR_TRANSPORT_TCP &&
!qry->server_selection.local_state->truncated &&
qry->server_selection.local_state->force_udp) {
// Last chance on broken TCP.
(*transport)->protocol = KR_TRANSPORT_UDP;
qry->flags.TCP = false;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment