Geert Hendrickx wrote:
> 
> I have a question about the auto-whitelisting algorithm; why is it
> implemented in greylist.c and not in cleanup.c?  The way it is done now
> (synchronously) means an extra query ('SELECT COUNT(*) FROM triplet
> WHERE _host='%s' AND _count > 0') for each policyd request, whereas this
> overhead could easily be avoided by performing the auto-whitelisting and
> the associated triplet cleaning asynchronously in the cleanup process.

It used to be done via the cleanup script, but people complained.

Doing it in real-time has the advantage of .. well .. being real
time without so many delays within the duration of cleanup -> cleanup.
Some companies have heavily loaded databases so in order to minimize
downtime they run the cleanup script weekly.

I guess if there was a demand for it, it could be user-configurable.
Patches will be accepted if there is a demand for it.

Cami

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to