DHCP w/ FHRP and duplicate requests

Phil Mayers p.mayers at imperial.ac.uk
Wed Mar 12 16:16:49 CET 2014


On 12/03/14 11:41, Arran Cudbard-Bell wrote:

>> It seems like rlm_cache would probably run "too late"?
>
> Why do you think it would be run too late?

You've got to populate the cache *after* you've done lease lookup, which 
unless you set threadpool_size == 1, could lead to the following:

thread 1: check cache
thread 1: sqlippool <suspended>
thread 2: check cache
thread 2: sqlippool
thread 1: sqlippool <resumes>
thread 1: populate cache
thread 2: populate cache

The duplicate detection and "get in queue for pending lease lookup" 
logic needs to happen before you do any lease processing.


More information about the Freeradius-Devel mailing list