[Date Prev][Date Next]
slurpd and multiple replicas (ITS#489)
Full_Name: Lars Uffmann
OS: SunOS 5.7
Submission from: (NULL) (126.96.36.199)
I use slurpd to replicate to four slave slapds:
replica b.ldap ...
replica c.ldap ...
replica d.ldap ...
replica e.ldap ...
Slurpd randomly open two connections to the same server,
for example it opens two connections to b.ldap, but no
connection to c.ldap, even so the configuration file is
I got stuck with this problem until I started to use ip
addresses instead of hostnames:
replica 188.8.131.52 ...
replica 184.108.40.206 ...
replica 220.127.116.11 ...
replica 18.104.22.168 ...
Since slurpd uses threading, I suspect the problem is in
libldap/os-ip.c. The 1.2 branch still uses gethostbyname instead
of the gethostbyname_r, which is reentrant.