if ((pool->state.num + pool->state.pending) >= pool->max) {
pthread_mutex_unlock(&pool->mutex);
- ROPTIONAL(RERROR, ERROR, "Cannot open new connection, already at max");
+ ERROR("Cannot open new connection, already at max");
return NULL;
}
pthread_mutex_unlock(&pool->mutex);
if (!fr_rate_limit_enabled() || complain) {
- ROPTIONAL(RERROR, ERROR, "Last connection attempt failed, waiting %pV seconds before retrying",
- fr_box_time_delta(pool->state.last_failed + pool->retry_delay - now));
+ ERROR("Last connection attempt failed, waiting %pV seconds before retrying",
+ fr_box_time_delta(pool->state.last_failed + pool->retry_delay - now));
}
return NULL;
*/
conn = pool->create(ctx, pool->opaque, pool->connect_timeout);
if (!conn) {
- ROPTIONAL(RERROR, ERROR, "Opening connection failed (%" PRIu64 ")", number);
+ ERROR("Opening connection failed (%" PRIu64 ")", number);
pool->state.last_failed = now;
pthread_mutex_lock(&pool->mutex);
pthread_mutex_unlock(&pool->mutex);
if (!fr_rate_limit_enabled() || complain) {
- ROPTIONAL(RERROR, ERROR, "No connections available and at max connection limit");
+ ERROR("No connections available and at max connection limit");
/*
* Must be done inside the mutex, reconnect callback
* may modify args.