Full_Name: Fabio Ubaldi
OS: Linux kernel 2.6.18
Submission from: (NULL) (18.104.22.168)
I have two processes running on the same PC that receive data from an
Each process opens a connection with a different "slapd" server (i.e
each server runs on a different PC) and launches "search" requests at a
fixed rate (about 100 searches/s). Each process creates a thread that
polls the server responses using the API "ldap_result" the used macro
are LDAP_RES_ANY and LDAP_MSG_ONE.
When the two processes send the requestes one of the two "ldap_result"
return with error (-1) and the error is "Can't contact the LDAP server".
I tried to launch one processes and it works fine (the maximum measured
rate is 800 searches/s). Also I launch the two processes alternating
the search requestes and it works fine.
It seems that the error happens only if the two process runs
simultaneously (I use a dual core PC). Thinking of a race condition
error , I used the libldap_r library to build process, but the error
The openldap version is 2.3.27 both for slapd servers and the libraries.
Have anyone encountered a similar error ?
Thanks in advance for the reply