Lines Matching refs:conf

64 	plugin_config conf;  member
89 plugin_config conf; member
199 p->conf = p->defaults; /* copy small struct instead of memcpy() */ in mod_cgi_patch_config()
203 mod_cgi_merge_config(&p->conf, p->cvlist + p->cvlist[i].v.u2[0]); in mod_cgi_patch_config()
499 log_error(r->conf.errh, __FILE__, __LINE__, "cgi-FDEVENT_ERR"); in cgi_process_wr_revents()
514 if (hctx->conf.upgrade && r->http_status == 101) { in cgi_response_headers()
545 if (hctx->conf.upgrade in cgi_response_headers()
548 hctx->conf.upgrade = 0; in cgi_response_headers()
614 const unsigned short flags = r->conf.stream_response_body; in cgi_process_rd_revents()
615 r->conf.stream_response_body &= ~FDEVENT_STREAM_RESPONSE_BUFMIN; in cgi_process_rd_revents()
616 r->conf.stream_response_body |= FDEVENT_STREAM_RESPONSE_POLLRDHUP; in cgi_process_rd_revents()
620 r->conf.stream_response_body = flags; in cgi_process_rd_revents()
680 ssize_t wr = chunkqueue_write_chunk_to_pipe(fd, cq, r->conf.errh); in cgi_write_request()
699 log_error(r->conf.errh, __FILE__, __LINE__, in cgi_write_request()
706 log_perror(r->conf.errh, __FILE__, __LINE__, "write() failed"); in cgi_write_request()
714 if (cq->bytes_out == (off_t)r->reqbody_length && !hctx->conf.upgrade) { in cgi_write_request()
720 log_perror(r->conf.errh, __FILE__, __LINE__, "cgi stdin close %d failed", fd); in cgi_write_request()
729 if (!(r->conf.stream_request_body & FDEVENT_STREAM_REQUEST_POLLIN)) { in cgi_write_request()
730 r->conf.stream_request_body |= FDEVENT_STREAM_REQUEST_POLLIN; in cgi_write_request()
761 log_perror(r->conf.errh, __FILE__, __LINE__, in cgi_create_env()
773 log_perror(r->conf.errh, __FILE__, __LINE__, "open /dev/null"); in cgi_create_env()
777 else if (!(r->conf.stream_request_body /*(if not streaming request body)*/ in cgi_create_env()
779 && !hctx->conf.upgrade) { in cgi_create_env()
785 && 0 != chunkqueue_open_file_chunk(cq, r->conf.errh)) in cgi_create_env()
791 log_perror(r->conf.errh, __FILE__, __LINE__, in cgi_create_env()
806 log_perror(r->conf.errh, __FILE__, __LINE__, "pipe failed"); in cgi_create_env()
817 log_perror(r->conf.errh, __FILE__, __LINE__, "pipe failed"); in cgi_create_env()
840 if (hctx->conf.upgrade) { in cgi_create_env()
848 if (hctx->conf.upgrade) in cgi_create_env()
906 int dfd = fdevent_open_dirname(r->physical.path.ptr,r->conf.follow_symlink); in cgi_create_env()
908 log_perror(r->conf.errh, __FILE__, __LINE__, "open dirname %s failed", r->physical.path.ptr); in cgi_create_env()
911 int serrh_fd = r->conf.serrh ? r->conf.serrh->fd : -1; in cgi_create_env()
924 log_perror(r->conf.errh, __FILE__, __LINE__, "fork failed"); in cgi_create_env()
971 log_perror(r->conf.errh, __FILE__, __LINE__, "fcntl failed"); in cgi_create_env()
992 if (NULL == p->conf.cgi) return HANDLER_GO_ON; in URIHANDLER_FUNC()
994 ds = (data_string *)array_match_key_suffix(p->conf.cgi, &r->physical.path); in URIHANDLER_FUNC()
1007 …if (p->conf.execute_x_only == 1 && (st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) return HAND… in URIHANDLER_FUNC()
1009 if (__builtin_expect( (r->h2_connect_ext != 0), 0) && !p->conf.upgrade) { in URIHANDLER_FUNC()
1016 && !(r->conf.stream_request_body /*(if not streaming request body)*/ in URIHANDLER_FUNC()
1030 memcpy(&hctx->conf, &p->conf, sizeof(plugin_config)); in URIHANDLER_FUNC()
1034 hctx->conf.upgrade = 0; in URIHANDLER_FUNC()
1035 else if (!hctx->conf.upgrade || r->http_version != HTTP_VERSION_1_1) { in URIHANDLER_FUNC()
1036 hctx->conf.upgrade = 0; in URIHANDLER_FUNC()
1040 if (hctx->conf.upgrade) { in URIHANDLER_FUNC()
1045 !(r->conf.stream_response_body /*(if not streaming response body)*/ in URIHANDLER_FUNC()
1048 : (r->conf.stream_response_body & FDEVENT_STREAM_RESPONSE_BUFMIN) in URIHANDLER_FUNC()
1054 hctx->opts.local_redir = hctx->conf.local_redir; in URIHANDLER_FUNC()
1055 hctx->opts.xsendfile_allow = hctx->conf.xsendfile_allow; in URIHANDLER_FUNC()
1056 hctx->opts.xsendfile_docroot = hctx->conf.xsendfile_docroot; in URIHANDLER_FUNC()
1077 (r->conf.stream_request_body & FDEVENT_STREAM_REQUEST_TCP_FIN), 0) in SUBREQUEST_FUNC()
1078 && hctx->conf.limits && hctx->conf.limits->signal_fin) { in SUBREQUEST_FUNC()
1083 cgi_pid_kill(hctx->cgi_pid, hctx->conf.limits->signal_fin); in SUBREQUEST_FUNC()
1099 if ((r->conf.stream_response_body & FDEVENT_STREAM_RESPONSE_BUFMIN) in SUBREQUEST_FUNC()
1118 && (r->conf.stream_request_body & FDEVENT_STREAM_REQUEST_BUFMIN)){ in SUBREQUEST_FUNC()
1119 r->conf.stream_request_body &= ~FDEVENT_STREAM_REQUEST_POLLIN; in SUBREQUEST_FUNC()
1123 && !(hctx->conf.upgrade && -1 == hctx->fd in SUBREQUEST_FUNC()
1134 if (-1 == r->reqbody_length && !hctx->conf.upgrade) { in SUBREQUEST_FUNC()
1135 return (r->conf.stream_request_body & FDEVENT_STREAM_REQUEST) in SUBREQUEST_FUNC()
1165 log_error(r->conf.errh, __FILE__, __LINE__, in cgi_trigger_hctx_timeout()
1191 const cgi_limits * const limits = hctx->conf.limits; in cgi_trigger_cb()
1226 log_error_st *errh = hctx ? hctx->r->conf.errh : srv->errh; in cgi_waitpid_cb()
1232 log_error_st *errh = hctx ? hctx->r->conf.errh : srv->errh; in cgi_waitpid_cb()