]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Output seconds until we retry
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 29 Nov 2016 11:14:13 +0000 (06:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 29 Nov 2016 11:15:33 +0000 (06:15 -0500)
src/main/connection.c

index 0b8a69e908aeb65622d15998cc0137807e1526e9..0a542ba4d477e26fb78978828ebb9d4f36fbd4e5 100644 (file)
@@ -378,7 +378,7 @@ static fr_connection_t *fr_connection_spawn(fr_connection_pool_t *pool, REQUEST
 
                if (!RATE_LIMIT_ENABLED || complain) {
                        ROPTIONAL(RERROR, ERROR, "Last connection attempt failed, waiting %d seconds before retrying",
-                                 pool->retry_delay);
+                                 (pool->state.last_failed + pool->retry_delay) - now);
                }
 
                return NULL;