]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_radius: Remove no_connection_fail
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Apr 2020 21:55:46 +0000 (16:55 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 16 Apr 2020 21:56:35 +0000 (16:56 -0500)
This is already implemented by the trunk

doc/antora/modules/raddb/pages/mods-available/radius.adoc
raddb/mods-available/radius
src/modules/rlm_radius/rlm_radius.c
src/modules/rlm_radius/rlm_radius.h
src/modules/rlm_radius/rlm_radius_udp.c

index a24dd3315732c5f4691a83b9783da0ce50955556..eb22c33fd6743df3eebd453fa79c65009af71fa8 100644 (file)
@@ -92,10 +92,6 @@ NOTE: The behavior in v3 is the same as `synchronous = yes`
 
 
 
-no_connection_fail:: If no connections are available, then
-the module will immediately return "fail".
-
-
 
 originate:: Whether or not we are creating the packet.
 
@@ -442,7 +438,6 @@ radius {
        type = Accounting-Request
 #      replicate = no
 #      synchronous = no
-#      no_connection_fail = no
 #      originate = no
        status_check {
                type = Status-Server
index 02122c8b729621ca33e92aada59a910970048fe9..6eeae1f3647b62ae34d01fbfb4e35ce0a9fb6161 100644 (file)
@@ -101,12 +101,6 @@ radius {
        #
 #      synchronous = no
 
-       #
-       #  no_connection_fail:: If no connections are available, then
-       #  the module will immediately return "fail".
-       #
-#      no_connection_fail = no
-
        #
        #  originate:: Whether or not we are creating the packet.
        #
index b2f6c99224c0dac1da641ab40387966278e6af09..88c0e51d13188d9b0f368a57ffd91ff2253dde64 100644 (file)
@@ -111,8 +111,6 @@ static CONF_PARSER const module_config[] = {
 
        { FR_CONF_OFFSET("synchronous", FR_TYPE_BOOL, rlm_radius_t, synchronous) },
 
-       { FR_CONF_OFFSET("no_connection_fail", FR_TYPE_BOOL, rlm_radius_t, no_connection_fail) },
-
        { FR_CONF_OFFSET("originate", FR_TYPE_BOOL, rlm_radius_t, originate) },
 
        { FR_CONF_POINTER("status_check", FR_TYPE_SUBSECTION, NULL), .subcs = (void const *) status_check_config },
index c1b4ca7571a0be5e054c9abd8d3c94dc096e096b..884039bffdbb11e9a1f2765d213582a8a5d73c0b 100644 (file)
@@ -60,7 +60,6 @@ struct rlm_radius_s {
 
        bool                    replicate;              //!< Ignore responses.
        bool                    synchronous;            //!< Retransmit when receiving a duplicate request.
-       bool                    no_connection_fail;     //!< Fail immediately if there are no active connections.
        bool                    originate;              //!< Originating packets, instead of proxying existing ones.
                                                        ///< Controls whether Proxy-State is added to the outbound
                                                        ///< request.
index 4aa895c992d7f4f19fab9b8deced78317dfbf575..635eed0425afb902cc46a67a68f432a7cb41834d 100644 (file)
@@ -2573,17 +2573,6 @@ static rlm_rcode_t mod_enqueue(void **rctx_out, void *instance, void *thread, RE
        fr_assert(request->packet->code > 0);
        fr_assert(request->packet->code < FR_RADIUS_MAX_PACKET_CODE);
 
-       /*
-        *      If configured, and we don't have any active
-        *      connections, fail the request.  This lets "parallel"
-        *      sections finish much more quickly than otherwise.
-        */
-       if (inst->parent->no_connection_fail &&
-           (fr_trunk_connection_count_by_state(t->trunk, FR_TRUNK_CONN_ACTIVE) == 0)) {
-               REDEBUG("Failing request due to 'no_connection_fail = true', and there are no active connections");
-               return RLM_MODULE_FAIL;
-       }
-
        if (request->packet->code == FR_CODE_STATUS_SERVER) {
                RWDEBUG("Status-Server is reserved for internal use, and cannot be sent manually.");
                return RLM_MODULE_NOOP;