Skip to content

Commit f6cb55a

Browse files
authored
Merge pull request #296 from jajik/typo
Fix an error message to contain the correct directive name
2 parents d5e21a3 + cded061 commit f6cb55a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3571,14 +3571,14 @@ static const char *cmd_proxy_cluster_lbstatus_recalc_time(cmd_parms *cmd, void *
35713571
return NULL;
35723572
}
35733573

3574-
static const char *cmd_proxy_cluster_wait_for_remove(cmd_parms *cmd, void *dummy, const char *arg)
3574+
static const char *cmd_proxy_cluster_wait_before_remove(cmd_parms *cmd, void *dummy, const char *arg)
35753575
{
35763576
int val = atoi(arg);
35773577
(void)cmd;
35783578
(void)dummy;
35793579

35803580
if (val < 10) {
3581-
return "WaitForRemove must be greater than 10";
3581+
return "WaitBeforeRemove must be greater than 10";
35823582
}
35833583

35843584
wait_for_remove = apr_time_from_sec(val);
@@ -3711,7 +3711,7 @@ static const command_rec proxy_cluster_cmds[] = {
37113711
AP_INIT_TAKE1("LBstatusRecalTime", cmd_proxy_cluster_lbstatus_recalc_time, NULL, OR_ALL,
37123712
"LBstatusRecalTime - Time interval in seconds for load balancing logic to recalculate the status of a "
37133713
"node: (Default: 5 seconds)"),
3714-
AP_INIT_TAKE1("WaitBeforeRemove", cmd_proxy_cluster_wait_for_remove, NULL, OR_ALL,
3714+
AP_INIT_TAKE1("WaitBeforeRemove", cmd_proxy_cluster_wait_before_remove, NULL, OR_ALL,
37153715
"WaitBeforeRemove - Time in seconds before a node removed is forgotten by httpd: (Default: 10 seconds)"),
37163716
/* This is not the ideal type, but it either takes no parameters (for backwards compatibility) or 1 flag argument. */
37173717
AP_INIT_RAW_ARGS("EnableOptions", cmd_proxy_cluster_enable_options, NULL, OR_ALL,

0 commit comments

Comments
 (0)