calling expired can cause races
as @fdupont mentioned, calling expire can cause races within the kea code:
lease->expired() // false here
...
// some time passes
lease->expired() // true here
Edited by Tomek Mrugalski
as @fdupont mentioned, calling expire can cause races within the kea code:
lease->expired() // false here
...
// some time passes
lease->expired() // true here