Lines Matching refs:conf
210 plugin_config conf; member
427 memcpy(&p->conf, &p->defaults, sizeof(plugin_config)); in mod_deflate_patch_config()
430 mod_deflate_merge_config(&p->conf, p->cvlist + p->cvlist[i].v.u2[0]); in mod_deflate_patch_config()
890 const encparms * const params = p->conf.params; in stream_deflate_init()
893 : p->conf.compression_level; in stream_deflate_init()
956 if (p->conf.sync_flush) { in stream_deflate_flush()
966 if (z->avail_out == 0 || (len > 0 && (end || p->conf.sync_flush))) { in stream_deflate_flush()
984 log_error(hctx->r->conf.errh, __FILE__, __LINE__, in stream_deflate_end()
987 log_error(hctx->r->conf.errh, __FILE__, __LINE__, in stream_deflate_end()
1011 const encparms * const params = p->conf.params; in stream_bzip2_init()
1014 : p->conf.compression_level; in stream_bzip2_init()
1018 ? p->conf.compression_level in stream_bzip2_init()
1081 if (bz->avail_out == 0 || (len > 0 && (end || p->conf.sync_flush))) { in stream_bzip2_flush()
1098 log_error(hctx->r->conf.errh, __FILE__, __LINE__, in stream_bzip2_end()
1115 const encparms * const params = p->conf.params; in stream_br_init()
1118 : (p->conf.compression_level >= 0) /* 0 .. 11 are valid values */ in stream_br_init()
1119 ? (uint32_t)p->conf.compression_level in stream_br_init()
1209 const encparms * const params = p->conf.params; in stream_zstd_init()
1228 else if (p->conf.compression_level >= 0) { /* -1 here is "unset" */ in stream_zstd_init()
1229 int level = p->conf.compression_level; in stream_zstd_init()
1416 log_error(r->conf.errh, __FILE__, __LINE__, in deflate_compress_cleanup()
1437 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "ftruncate"); in mod_deflate_using_libdeflate_err()
1439 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "lseek"); in mod_deflate_using_libdeflate_err()
1443 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "unlink"); in mod_deflate_using_libdeflate_err()
1453 const encparms * const params = p->conf.params; in mod_deflate_using_libdeflate_sm()
1456 : p->conf.compression_level; in mod_deflate_using_libdeflate_sm()
1535 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "ftruncate"); in mod_deflate_using_libdeflate()
1542 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "mmap"); in mod_deflate_using_libdeflate()
1546 const encparms * const params = p->conf.params; in mod_deflate_using_libdeflate()
1549 : p->conf.compression_level; in mod_deflate_using_libdeflate()
1570 log_perror(hctx->r->conf.errh, __FILE__, __LINE__, "munmap"); in mod_deflate_using_libdeflate()
1574 log_error(hctx->r->conf.errh, __FILE__, __LINE__, in mod_deflate_using_libdeflate()
1609 log_perror(r->conf.errh, __FILE__, __LINE__, "malloc"); in mod_deflate_file_chunk_no_mmap()
1622 log_perror(r->conf.errh, __FILE__, __LINE__, in mod_deflate_file_chunk_no_mmap()
1625 log_error(r->conf.errh, __FILE__, __LINE__, in mod_deflate_file_chunk_no_mmap()
1651 ? chunkqueue_chunk_file_view(c, n, r->conf.errh) in mod_deflate_file_chunk_mmap()
1662 log_error(r->conf.errh, __FILE__, __LINE__, in mod_deflate_file_chunk_mmap()
1665 log_error(r->conf.errh, __FILE__, __LINE__, "compress failed."); in mod_deflate_file_chunk_mmap()
1676 … if (-1 == (c->file.fd = fdevent_open_cloexec(c->mem->ptr, r->conf.follow_symlink, O_RDONLY, 0))) { in mod_deflate_file_chunk()
1677 log_perror(r->conf.errh, __FILE__, __LINE__, "open failed %s", c->mem->ptr); in mod_deflate_file_chunk()
1705 if (p->conf.sync_flush && max > (len = p->conf.work_block_size << 10)) { in deflate_compress_response()
1719 log_error(r->conf.errh, __FILE__, __LINE__, "compress failed."); in deflate_compress_response()
1727 log_error(r->conf.errh, __FILE__, __LINE__, in deflate_compress_response()
1733 log_error(r->conf.errh, __FILE__, __LINE__, "%d type not known", c->type); in deflate_compress_response()
1746 log_error(r->conf.errh, __FILE__, __LINE__, "flush error"); in deflate_compress_response()
1829 const uint16_t *x = p->conf.allowed_encodings; in mod_deflate_choose_encoding()
1909 if (NULL == p->conf.mimetypes) return HANDLER_GO_ON; in REQUEST_FUNC()
1914 if (len <= (off_t)p->conf.min_compress_size) return HANDLER_GO_ON; in REQUEST_FUNC()
1915 if (p->conf.max_compress_size /*(max_compress_size in KB)*/ in REQUEST_FUNC()
1916 && len > ((off_t)p->conf.max_compress_size << 10)) { in REQUEST_FUNC()
1930 if (NULL == array_match_value_prefix(p->conf.mimetypes, vbro)) return HANDLER_GO_ON; in REQUEST_FUNC()
1933 data_string *mimetype = (data_string *)p->conf.mimetypes->data[0]; in REQUEST_FUNC()
1985 if (0.0 < p->conf.max_loadavg && p->conf.max_loadavg < r->con->srv->loadavg[0]) { in REQUEST_FUNC()
2028 if (p->conf.cache_dir in REQUEST_FUNC()
2044 tb = mod_deflate_cache_file_name(r, p->conf.cache_dir, vb); in REQUEST_FUNC()
2067 p->conf.sync_flush = in REQUEST_FUNC()
2068 ((r->conf.stream_response_body in REQUEST_FUNC()
2070 && 0 == p->conf.output_buffer_size); in REQUEST_FUNC()
2093 && chunkqueue_chunk_file_view(c, len, r->conf.errh) in REQUEST_FUNC()
2133 log_error(r->conf.errh, __FILE__, __LINE__, in REQUEST_FUNC()