hedi wrote: > Thank you Rich for this fast and precious help, > In the main samples I found the 'ldap_create_persistentsearch_control' is followen >by a 'ldap_search_ext' and its while loop to parse > the result and the entry to have the different type of changes that occured on the >'watched' node. This method costs CPU, as it is not > a ponctual operation (like a read or write call). Do I have to include a 'sleep' >call in the loop ? Or is there any other manner to > wait for the event ?
If you poll in a tight loop with no sleep, you will use excessive CPU and possibly starve other threads in your application. So I would suggest a sleep or a thread yield. > Any detail on 'last change number' to resychronize the servers with the NDS ? This should be in the DS 4.x documentation. > > > Many thanks. > > Hedi. > . > > Rich Megginson wrote: > > > hedi wrote: > > > > > Hi everybody, > > > > > > Using iPlanet DS 4.13 I'd like to receive an event when any update > > > occurs in my directory, to be able to flush my agent's caches. Do you > > > know if any plugin is available for such feature ? > > > > You can use the Persistent Search control by itself or in conjunction with the >changelog. Since you are keeping a cache, you will > > probably want to use persistent search on cn=changelog. That way, if your >persistent search is disconnected, you can use your > > last change number to resync. > > > > > > > > > > > Thanks. > > > > > > Hedi.
