URL:
https://github.com/freeipa/freeipa/pull/2032
Author: tiran
Title: #2032: Sort and shuffle SRV record by priority and weight
Action: opened
PR body:
"""
On multiple occasions, SRV query answers were not properly sorted by
priority. Records with same priority weren't randomized and shuffled.
This caused FreeIPA to contact the same remote peer instead of
distributing the load across all available servers.
Two new helper functions now take care of SRV queries. sort_srv() sorts
SRV records. query_srv() combines SRV lookup with sort_srv().
Fixes:
https://pagure.io/freeipa/issue/7475
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2032/head:pr2032
git checkout pr2032