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

Function md_config_set_check_interval

modules/md/mod_md_config.c:699–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699static const char *md_config_set_check_interval(cmd_parms *cmd, void *dc, const char *value)
700{
701 md_srv_conf_t *config = md_config_get(cmd->server);
702 const char *err = md_conf_check_location(cmd, MD_LOC_NOT_MD);
703 apr_time_t interval;
704
705 (void)dc;
706 if (err) return err;
707 if (md_duration_parse(&interval, value, "s") != APR_SUCCESS) {
708 return "unrecognized duration format";
709 }
710 if (interval < apr_time_from_sec(1)) {
711 return "check interval cannot be less than one second";
712 }
713 config->mc->check_interval = interval;
714 return NULL;
715}
716
717static const char *md_config_set_min_delay(cmd_parms *cmd, void *dc, const char *value)
718{

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