]> 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)
committerHoward Chu <hyc@openldap.org>
Tue, 22 Jul 2014 02:31:59 +0000 (19:31 -0700)
commit5de85b922aaa5bfa6eb53db6000adf01ebdb0736
tree9a751a423862c9ebce91bd618f9b56f26a2d2680
parent7e7ce79bd796e4cd8c7527e9d7d2a1fd851b1f33
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