We want to close idle sessions, sessions with max lifetime
or max uses. BUT we want to enforce "min". The code will
currently close a connection, notice "num < min", and spawn
a new one. We warn the user that this is happening, so that
they can fix their configuration.
DEBUG("%s: Closing expired connection (%i): Hit max_uses limit",
fc->log_prefix, this->number);
do_delete:
+ if ((fc->num <= fc->min) &&
+ (fc->last_complained < now)) {
+ radlog(L_INFO, "WARNING in %s: You probably need to lower \"min\"", fc->log_prefix);
+ fc->last_complained = now;
+ }
fr_connection_close(fc, this);
return 0;
}