MCPcopy Create free account
hub / github.com/apache/httpd / md_config_set_min_delay

Function md_config_set_min_delay

modules/md/mod_md_config.c:717–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717static const char *md_config_set_min_delay(cmd_parms *cmd, void *dc, const char *value)
718{
719 md_srv_conf_t *config = md_config_get(cmd->server);
720 const char *err = md_conf_check_location(cmd, MD_LOC_NOT_MD);
721 apr_time_t delay;
722
723 (void)dc;
724 if (err) return err;
725 if (md_duration_parse(&delay, value, "s") != APR_SUCCESS) {
726 return "unrecognized duration format";
727 }
728 if (delay <= 0) {
729 return "minimum delay must be greater than 0";
730 }
731 config->mc->min_delay = delay;
732 return NULL;
733}
734
735static const char *md_config_set_retry_failover(cmd_parms *cmd, void *dc, const char *value)
736{

Callers

nothing calls this directly

Calls 3

md_config_getFunction · 0.85
md_conf_check_locationFunction · 0.85
md_duration_parseFunction · 0.85

Tested by

no test coverage detected