Re: New LDAP C API
Tue, 13 Feb 2007 15:55:22 -0800
Love Hörnquist Åstrand wrote:
14 feb 2007 kl. 10.21 skrev Howard Chu:
This was one of Kurt's points, but I take it to mean "free- threaded"
i.e. the same library should work with or without threads. The
calling app should provide threading/locking callbacks if needed.
For me free-threaded means no locking done at all, because its not
And that would be ideal, yes. Looking at how things work right now I
don't think we can accomplish it. E.g. if you allow multiple threads to
use a single LDAP session, you must guarantee that each outgoing request
has a unique messageID and you must avoid re-using any IDs over the life
of the session. To me this means locked access to a messageID counter,
but if there are other ways, great.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
Chief Architect, OpenLDAP http://www.openldap.org/project/