Lines Matching refs:cpv

58         config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0];  in config_free_config()  local
59 for (; -1 != cpv->k_id; ++cpv) { in config_free_config()
60 switch (cpv->k_id) { in config_free_config()
62 if (cpv->vtype == T_CONFIG_LOCAL) free(cpv->v.v); in config_free_config()
78 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in config_reset_config_bytes_sec() local
79 for (; -1 != cpv->k_id; ++cpv) { in config_reset_config_bytes_sec()
80 switch (cpv->k_id) { in config_reset_config_bytes_sec()
82 if (cpv->vtype == T_CONFIG_LOCAL) ((off_t *)cpv->v.v)[0] = 0; in config_reset_config_bytes_sec()
91 …id config_merge_config_cpv(request_config * const pconf, const config_plugin_value_t * const cpv) { in config_merge_config_cpv() argument
92 switch (cpv->k_id) { /* index into static config_plugin_keys_t cpk[] */ in config_merge_config_cpv()
94 pconf->document_root = cpv->v.b; in config_merge_config_cpv()
97 pconf->server_name = cpv->v.b; in config_merge_config_cpv()
100 pconf->server_tag = cpv->v.b; in config_merge_config_cpv()
103 pconf->max_request_size = cpv->v.u; in config_merge_config_cpv()
106 pconf->max_keep_alive_requests = cpv->v.shrt; in config_merge_config_cpv()
109 pconf->max_keep_alive_idle = cpv->v.shrt; in config_merge_config_cpv()
112 pconf->max_read_idle = cpv->v.shrt; in config_merge_config_cpv()
115 pconf->max_write_idle = cpv->v.shrt; in config_merge_config_cpv()
118 pconf->errorfile_prefix = cpv->v.b; in config_merge_config_cpv()
121 pconf->error_handler = cpv->v.b; in config_merge_config_cpv()
124 pconf->error_handler_404 = cpv->v.b; in config_merge_config_cpv()
127 pconf->error_intercept = (0 != cpv->v.u); in config_merge_config_cpv()
130 pconf->force_lowercase_filenames = (0 != cpv->v.u); in config_merge_config_cpv()
133 pconf->follow_symlink = (0 != cpv->v.u); in config_merge_config_cpv()
136 pconf->allow_http11 = (0 != cpv->v.u); in config_merge_config_cpv()
139 pconf->range_requests = (0 != cpv->v.u); in config_merge_config_cpv()
142 pconf->stream_request_body = cpv->v.shrt; in config_merge_config_cpv()
145 pconf->stream_response_body = cpv->v.shrt; in config_merge_config_cpv()
148 pconf->global_bytes_per_second = (unsigned int)((off_t *)cpv->v.v)[1]; in config_merge_config_cpv()
149 pconf->global_bytes_per_second_cnt_ptr = cpv->v.v; in config_merge_config_cpv()
152 pconf->bytes_per_second = (unsigned int)cpv->v.shrt << 10;/* (*=1024) */ in config_merge_config_cpv()
155 pconf->mimetypes = cpv->v.a; in config_merge_config_cpv()
158 pconf->use_xattr = (0 != cpv->v.u); in config_merge_config_cpv()
161 cpv->v.u in config_merge_config_cpv()
166 cpv->v.u in config_merge_config_cpv()
171 cpv->v.u in config_merge_config_cpv()
176 pconf->log_condition_handling = (0 != cpv->v.u); in config_merge_config_cpv()
179 pconf->log_file_not_found = (0 != cpv->v.u); in config_merge_config_cpv()
182 pconf->log_request_handling = (0 != cpv->v.u); in config_merge_config_cpv()
185 pconf->log_request_header = (0 != cpv->v.u); in config_merge_config_cpv()
188 pconf->log_response_header = (0 != cpv->v.u); in config_merge_config_cpv()
191 pconf->log_timeouts = (0 != cpv->v.u); in config_merge_config_cpv()
194 pconf->log_state_handling = (0 != cpv->v.u); in config_merge_config_cpv()
197 if (cpv->vtype == T_CONFIG_LOCAL) pconf->errh = cpv->v.v; in config_merge_config_cpv()
200 if (cpv->vtype == T_CONFIG_LOCAL) pconf->serrh = cpv->v.v; in config_merge_config_cpv()
207 static void config_merge_config(request_config * const pconf, const config_plugin_value_t *cpv) { in config_merge_config() argument
209 config_merge_config_cpv(pconf, cpv); in config_merge_config()
210 } while ((++cpv)->k_id != -1); in config_merge_config()
817 config_plugin_value_t *cpv = p->cvlist + p->cvlist[0].v.u2[0]; in config_insert_srvconf() local
818 for (; -1 != cpv->k_id; ++cpv) { in config_insert_srvconf()
819 switch (cpv->k_id) { in config_insert_srvconf()
821 array_copy_array(srv->srvconf.modules, cpv->v.a); in config_insert_srvconf()
824 srv->srvconf.compat_module_load = (unsigned short)cpv->v.u; in config_insert_srvconf()
827 srv->srvconf.systemd_socket_activation=(unsigned short)cpv->v.u; in config_insert_srvconf()
830 srv->srvconf.port = cpv->v.shrt; in config_insert_srvconf()
833 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
834 srv->srvconf.bindhost = cpv->v.b; in config_insert_srvconf()
837 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
838 srv->srvconf.network_backend = cpv->v.b; in config_insert_srvconf()
841 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
842 srv->srvconf.changeroot = cpv->v.b; in config_insert_srvconf()
845 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
846 srv->srvconf.username = cpv->v.b; in config_insert_srvconf()
849 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
850 srv->srvconf.groupname = cpv->v.b; in config_insert_srvconf()
859 srv->srvconf.errorlog_use_syslog = (unsigned short)cpv->v.u; in config_insert_srvconf()
862 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
863 srv->srvconf.syslog_facility = cpv->v.b; in config_insert_srvconf()
866 srv->srvconf.enable_cores = (unsigned short)cpv->v.u; in config_insert_srvconf()
869 srv->srvconf.event_handler = cpv->v.b->ptr; in config_insert_srvconf()
872 if (!buffer_is_blank(cpv->v.b)) in config_insert_srvconf()
873 *(const buffer **)&srv->srvconf.pid_file = cpv->v.b; in config_insert_srvconf()
876 srv->srvconf.max_worker = (unsigned short)cpv->v.u; in config_insert_srvconf()
879 srv->srvconf.max_fds = (unsigned short)cpv->v.u; in config_insert_srvconf()
882 srv->srvconf.max_conns = (unsigned short)cpv->v.u; in config_insert_srvconf()
885 srv->srvconf.max_request_field_size = cpv->v.u; in config_insert_srvconf()
888 chunkqueue_set_chunk_size(cpv->v.u); in config_insert_srvconf()
891 srv->srvconf.upload_temp_file_size = cpv->v.u; in config_insert_srvconf()
894 array_copy_array(srv->srvconf.upload_tempdirs, cpv->v.a); in config_insert_srvconf()
897 if (!config_http_parseopts(srv, cpv->v.a)) in config_insert_srvconf()
901 srv->srvconf.http_header_strict = (0 != cpv->v.u); in config_insert_srvconf()
904 srv->srvconf.http_host_strict = (0 != cpv->v.u); in config_insert_srvconf()
907 srv->srvconf.http_host_normalize = (0 != cpv->v.u); in config_insert_srvconf()
912 if (0 != stat_cache_choose_engine(cpv->v.b, srv->errh)) in config_insert_srvconf()
916 stat_cache_xattrname(cpv->v.b->ptr); in config_insert_srvconf()
919 ssl_enabled = (0 != cpv->v.u); in config_insert_srvconf()
935 srv->srvconf.log_request_header_on_error = (0 != cpv->v.u); in config_insert_srvconf()
938 srv->srvconf.feature_flags = cpv->v.a; in config_insert_srvconf()
941 array_get_element_klen(cpv->v.a, in config_insert_srvconf()
946 array_get_element_klen(cpv->v.a, in config_insert_srvconf()
950 array_get_element_klen(cpv->v.a, in config_insert_srvconf()
1098 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in config_insert() local
1099 for (; -1 != cpv->k_id; ++cpv) { in config_insert()
1100 switch (cpv->k_id) { in config_insert()
1104 if (buffer_is_blank(cpv->v.b)) in config_insert()
1105 cpv->v.b = NULL; in config_insert()
1108 if (!buffer_is_blank(cpv->v.b)) { in config_insert()
1110 *(const buffer **)&b = cpv->v.b; in config_insert()
1128 cpv->v.b = NULL; in config_insert()
1135 cpv->v.b = NULL; in config_insert()
1146 if (buffer_is_blank(cpv->v.b)) in config_insert()
1147 cpv->v.b = NULL; in config_insert()
1154 if (0 == cpv->v.u) in config_insert()
1165 if (cpv->v.shrt & FDEVENT_STREAM_REQUEST_BUFMIN) in config_insert()
1166 cpv->v.shrt |=FDEVENT_STREAM_REQUEST; in config_insert()
1169 if (cpv->v.shrt & FDEVENT_STREAM_RESPONSE_BUFMIN) in config_insert()
1170 cpv->v.shrt |=FDEVENT_STREAM_RESPONSE; in config_insert()
1175 cnt[1] = (off_t)cpv->v.shrt << 10; in config_insert()
1176 cpv->v.v = cnt; in config_insert()
1177 cpv->vtype = T_CONFIG_LOCAL; in config_insert()
1185 array_get_data_unset(cpv->v.a, CONST_STR_LEN(".js")); in config_insert()
1238 const config_plugin_value_t *cpv = p->cvlist + p->cvlist->v.u2[0]; in config_insert() local
1239 if (-1 != cpv->k_id) in config_insert()
1240 config_merge_config(&p->defaults, cpv); in config_insert()
1698 config_plugin_value_t *cpv = p->cvlist + p->cvlist[i].v.u2[0]; in config_log_error_open() local
1699 for (; -1 != cpv->k_id; ++cpv) { in config_log_error_open()
1702 switch (cpv->k_id) { in config_log_error_open()
1712 if (!buffer_is_blank(cpv->v.b)) fn = cpv->v.b->ptr; in config_log_error_open()
1734 cpv->v.v = errh = fdlog; in config_log_error_open()
1735 cpv->vtype = T_CONFIG_LOCAL; in config_log_error_open()