[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slurpd and multiple replicas (ITS#489)
Full_Name: Lars Uffmann
Version: 1.2.9
OS: SunOS 5.7
URL:
Submission from: (NULL) (195.71.129.228)
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
succesfully parsed.
I got stuck with this problem until I started to use ip
addresses instead of hostnames:
replica 1.2.3.4 ...
replica 1.2.3.5 ...
replica 1.2.3.6 ...
replica 1.2.3.7 ...
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.