-no_connection_fail:: If no connections are available, then
-the module will immediately return "fail".
-
-
originate:: Whether or not we are creating the packet.
type = Accounting-Request
# replicate = no
# synchronous = no
-# no_connection_fail = no
# originate = no
status_check {
type = Status-Server
#
# 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.
#
{ 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 },
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.
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;