spawn = pool->min - (pool->num + pool->pending);
extra = 0;
+ ROPTIONAL(RINFO, INFO, "Need %i more connections to reach min connections (%i)", spawn, pool->min);
+
/*
* If we're about to create more than "max",
* don't create more.
spawn = pool->max - (pool->num + pool->pending);
}
+ ROPTIONAL(RINFO, INFO, "Need %i more connections to reach %i spares", spawn, pool->spare);
+
/*
* min < num < max
*
* a connection. Avoids spurious log messages.
*/
if (spawn) {
- INFO("%s: Need %i more connections to reach %i spares",
- pool->log_prefix, spawn, pool->spare);
pthread_mutex_unlock(&pool->mutex);
fr_connection_spawn(pool, now, false); /* ignore return code */
pthread_mutex_lock(&pool->mutex);
}
pthread_mutex_unlock(&pool->mutex);
-
+
if (!RATE_LIMIT_ENABLED || complain) {
ERROR("%s: No connections available and at max connection limit", pool->log_prefix);
}