]> git.sur5r.net Git - openldap/commit
ITS#7027 Implement priority/weight for DNS SRV records
authorJames M Leddy <james.leddy@redhat.com>
Tue, 23 Aug 2011 21:02:03 +0000 (17:02 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Jul 2014 22:18:09 +0000 (17:18 -0500)
commitf4224fb5a247bf5d97a059be4df14fc32d559d31
tree811e3e1010e36db8418f267f0eb87e86564e39c2
parentd2561a9369890e67eb51bd3d94cee60e7f8c87ed
ITS#7027 Implement priority/weight for DNS SRV records

From RFC 2782:

  A client MUST attempt to contact the target host with the
  lowest-numbered priority it can reach.

This patch sorts the DNS SRV records by their priority, and
additionally gives records with a larger weight a higher probability
of appearing earlier. This way, the DNS SRV records are tried in the
order of their priority.
libraries/libldap/dnssrv.c