Lines Matching refs:upstream

29     ngx_http_upstream_conf_t   upstream;  member
116 offsetof(ngx_http_scgi_loc_conf_t, upstream.store_access),
123 offsetof(ngx_http_scgi_loc_conf_t, upstream.buffering),
130 offsetof(ngx_http_scgi_loc_conf_t, upstream.request_buffering),
137 offsetof(ngx_http_scgi_loc_conf_t, upstream.ignore_client_abort),
144 offsetof(ngx_http_scgi_loc_conf_t, upstream.local),
151 offsetof(ngx_http_scgi_loc_conf_t, upstream.socket_keepalive),
158 offsetof(ngx_http_scgi_loc_conf_t, upstream.connect_timeout),
165 offsetof(ngx_http_scgi_loc_conf_t, upstream.send_timeout),
172 offsetof(ngx_http_scgi_loc_conf_t, upstream.buffer_size),
179 offsetof(ngx_http_scgi_loc_conf_t, upstream.pass_request_headers),
186 offsetof(ngx_http_scgi_loc_conf_t, upstream.pass_request_body),
193 offsetof(ngx_http_scgi_loc_conf_t, upstream.intercept_errors),
200 offsetof(ngx_http_scgi_loc_conf_t, upstream.read_timeout),
207 offsetof(ngx_http_scgi_loc_conf_t, upstream.bufs),
214 offsetof(ngx_http_scgi_loc_conf_t, upstream.busy_buffers_size_conf),
221 offsetof(ngx_http_scgi_loc_conf_t, upstream.force_ranges),
228 offsetof(ngx_http_scgi_loc_conf_t, upstream.limit_rate),
258 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_bypass),
265 offsetof(ngx_http_scgi_loc_conf_t, upstream.no_cache),
272 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_valid),
279 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_min_uses),
286 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_max_range_offset),
293 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_use_stale),
300 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_methods),
307 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_lock),
314 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_lock_timeout),
321 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_lock_age),
328 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_revalidate),
335 offsetof(ngx_http_scgi_loc_conf_t, upstream.cache_background_update),
344 offsetof(ngx_http_scgi_loc_conf_t, upstream.temp_path),
351 offsetof(ngx_http_scgi_loc_conf_t, upstream.max_temp_file_size_conf),
358 offsetof(ngx_http_scgi_loc_conf_t, upstream.temp_file_write_size_conf),
365 offsetof(ngx_http_scgi_loc_conf_t, upstream.next_upstream),
372 offsetof(ngx_http_scgi_loc_conf_t, upstream.next_upstream_tries),
379 offsetof(ngx_http_scgi_loc_conf_t, upstream.next_upstream_timeout),
393 offsetof(ngx_http_scgi_loc_conf_t, upstream.pass_headers),
400 offsetof(ngx_http_scgi_loc_conf_t, upstream.hide_headers),
407 offsetof(ngx_http_scgi_loc_conf_t, upstream.ignore_headers),
507 u = r->upstream; in ngx_http_scgi_handler()
512 u->conf = &scf->upstream; in ngx_http_scgi_handler()
528 u->buffering = scf->upstream.buffering; in ngx_http_scgi_handler()
542 if (!scf->upstream.request_buffering in ngx_http_scgi_handler()
543 && scf->upstream.pass_request_body in ngx_http_scgi_handler()
585 u = r->upstream; in ngx_http_scgi_eval()
652 body = r->upstream->request_bufs; in ngx_http_scgi_create_request()
670 params = r->upstream->cacheable ? &scf->params_cache : &scf->params; in ngx_http_scgi_create_request()
705 if (scf->upstream.pass_request_headers) { in ngx_http_scgi_create_request()
853 if (scf->upstream.pass_request_headers) { in ngx_http_scgi_create_request()
910 r->upstream->request_bufs = cl; in ngx_http_scgi_create_request()
912 } else if (scf->upstream.pass_request_body) { in ngx_http_scgi_create_request()
913 body = r->upstream->request_bufs; in ngx_http_scgi_create_request()
914 r->upstream->request_bufs = cl; in ngx_http_scgi_create_request()
936 r->upstream->request_bufs = cl; in ngx_http_scgi_create_request()
961 r->upstream->process_header = ngx_http_scgi_process_status_line; in ngx_http_scgi_reinit_request()
982 u = r->upstream; in ngx_http_scgi_process_status_line()
1035 rc = ngx_http_parse_header_line(r, &r->upstream->buffer, 1); in ngx_http_scgi_process_header()
1041 h = ngx_list_push(&r->upstream->headers_in.headers); in ngx_http_scgi_process_header()
1094 u = r->upstream; in ngx_http_scgi_process_header()
1159 u = r->upstream; in ngx_http_scgi_input_filter_init()
1237 conf->upstream.store = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1238 conf->upstream.store_access = NGX_CONF_UNSET_UINT; in ngx_http_scgi_create_loc_conf()
1239 conf->upstream.next_upstream_tries = NGX_CONF_UNSET_UINT; in ngx_http_scgi_create_loc_conf()
1240 conf->upstream.buffering = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1241 conf->upstream.request_buffering = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1242 conf->upstream.ignore_client_abort = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1243 conf->upstream.force_ranges = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1245 conf->upstream.local = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1246 conf->upstream.socket_keepalive = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1248 conf->upstream.connect_timeout = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1249 conf->upstream.send_timeout = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1250 conf->upstream.read_timeout = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1251 conf->upstream.next_upstream_timeout = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1253 conf->upstream.send_lowat = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1254 conf->upstream.buffer_size = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1255 conf->upstream.limit_rate = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1257 conf->upstream.busy_buffers_size_conf = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1258 conf->upstream.max_temp_file_size_conf = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1259 conf->upstream.temp_file_write_size_conf = NGX_CONF_UNSET_SIZE; in ngx_http_scgi_create_loc_conf()
1261 conf->upstream.pass_request_headers = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1262 conf->upstream.pass_request_body = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1265 conf->upstream.cache = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1266 conf->upstream.cache_min_uses = NGX_CONF_UNSET_UINT; in ngx_http_scgi_create_loc_conf()
1267 conf->upstream.cache_max_range_offset = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1268 conf->upstream.cache_bypass = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1269 conf->upstream.no_cache = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1270 conf->upstream.cache_valid = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1271 conf->upstream.cache_lock = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1272 conf->upstream.cache_lock_timeout = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1273 conf->upstream.cache_lock_age = NGX_CONF_UNSET_MSEC; in ngx_http_scgi_create_loc_conf()
1274 conf->upstream.cache_revalidate = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1275 conf->upstream.cache_background_update = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1278 conf->upstream.hide_headers = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1279 conf->upstream.pass_headers = NGX_CONF_UNSET_PTR; in ngx_http_scgi_create_loc_conf()
1281 conf->upstream.intercept_errors = NGX_CONF_UNSET; in ngx_http_scgi_create_loc_conf()
1284 conf->upstream.cyclic_temp_file = 0; in ngx_http_scgi_create_loc_conf()
1286 conf->upstream.change_buffering = 1; in ngx_http_scgi_create_loc_conf()
1288 ngx_str_set(&conf->upstream.module, "scgi"); in ngx_http_scgi_create_loc_conf()
1307 if (conf->upstream.store > 0) { in ngx_http_scgi_merge_loc_conf()
1308 conf->upstream.cache = 0; in ngx_http_scgi_merge_loc_conf()
1311 if (conf->upstream.cache > 0) { in ngx_http_scgi_merge_loc_conf()
1312 conf->upstream.store = 0; in ngx_http_scgi_merge_loc_conf()
1317 if (conf->upstream.store == NGX_CONF_UNSET) { in ngx_http_scgi_merge_loc_conf()
1318 ngx_conf_merge_value(conf->upstream.store, prev->upstream.store, 0); in ngx_http_scgi_merge_loc_conf()
1320 conf->upstream.store_lengths = prev->upstream.store_lengths; in ngx_http_scgi_merge_loc_conf()
1321 conf->upstream.store_values = prev->upstream.store_values; in ngx_http_scgi_merge_loc_conf()
1324 ngx_conf_merge_uint_value(conf->upstream.store_access, in ngx_http_scgi_merge_loc_conf()
1325 prev->upstream.store_access, 0600); in ngx_http_scgi_merge_loc_conf()
1327 ngx_conf_merge_uint_value(conf->upstream.next_upstream_tries, in ngx_http_scgi_merge_loc_conf()
1328 prev->upstream.next_upstream_tries, 0); in ngx_http_scgi_merge_loc_conf()
1330 ngx_conf_merge_value(conf->upstream.buffering, in ngx_http_scgi_merge_loc_conf()
1331 prev->upstream.buffering, 1); in ngx_http_scgi_merge_loc_conf()
1333 ngx_conf_merge_value(conf->upstream.request_buffering, in ngx_http_scgi_merge_loc_conf()
1334 prev->upstream.request_buffering, 1); in ngx_http_scgi_merge_loc_conf()
1336 ngx_conf_merge_value(conf->upstream.ignore_client_abort, in ngx_http_scgi_merge_loc_conf()
1337 prev->upstream.ignore_client_abort, 0); in ngx_http_scgi_merge_loc_conf()
1339 ngx_conf_merge_value(conf->upstream.force_ranges, in ngx_http_scgi_merge_loc_conf()
1340 prev->upstream.force_ranges, 0); in ngx_http_scgi_merge_loc_conf()
1342 ngx_conf_merge_ptr_value(conf->upstream.local, in ngx_http_scgi_merge_loc_conf()
1343 prev->upstream.local, NULL); in ngx_http_scgi_merge_loc_conf()
1345 ngx_conf_merge_value(conf->upstream.socket_keepalive, in ngx_http_scgi_merge_loc_conf()
1346 prev->upstream.socket_keepalive, 0); in ngx_http_scgi_merge_loc_conf()
1348 ngx_conf_merge_msec_value(conf->upstream.connect_timeout, in ngx_http_scgi_merge_loc_conf()
1349 prev->upstream.connect_timeout, 60000); in ngx_http_scgi_merge_loc_conf()
1351 ngx_conf_merge_msec_value(conf->upstream.send_timeout, in ngx_http_scgi_merge_loc_conf()
1352 prev->upstream.send_timeout, 60000); in ngx_http_scgi_merge_loc_conf()
1354 ngx_conf_merge_msec_value(conf->upstream.read_timeout, in ngx_http_scgi_merge_loc_conf()
1355 prev->upstream.read_timeout, 60000); in ngx_http_scgi_merge_loc_conf()
1357 ngx_conf_merge_msec_value(conf->upstream.next_upstream_timeout, in ngx_http_scgi_merge_loc_conf()
1358 prev->upstream.next_upstream_timeout, 0); in ngx_http_scgi_merge_loc_conf()
1360 ngx_conf_merge_size_value(conf->upstream.send_lowat, in ngx_http_scgi_merge_loc_conf()
1361 prev->upstream.send_lowat, 0); in ngx_http_scgi_merge_loc_conf()
1363 ngx_conf_merge_size_value(conf->upstream.buffer_size, in ngx_http_scgi_merge_loc_conf()
1364 prev->upstream.buffer_size, in ngx_http_scgi_merge_loc_conf()
1367 ngx_conf_merge_size_value(conf->upstream.limit_rate, in ngx_http_scgi_merge_loc_conf()
1368 prev->upstream.limit_rate, 0); in ngx_http_scgi_merge_loc_conf()
1371 ngx_conf_merge_bufs_value(conf->upstream.bufs, prev->upstream.bufs, in ngx_http_scgi_merge_loc_conf()
1374 if (conf->upstream.bufs.num < 2) { in ngx_http_scgi_merge_loc_conf()
1381 size = conf->upstream.buffer_size; in ngx_http_scgi_merge_loc_conf()
1382 if (size < conf->upstream.bufs.size) { in ngx_http_scgi_merge_loc_conf()
1383 size = conf->upstream.bufs.size; in ngx_http_scgi_merge_loc_conf()
1387 ngx_conf_merge_size_value(conf->upstream.busy_buffers_size_conf, in ngx_http_scgi_merge_loc_conf()
1388 prev->upstream.busy_buffers_size_conf, in ngx_http_scgi_merge_loc_conf()
1391 if (conf->upstream.busy_buffers_size_conf == NGX_CONF_UNSET_SIZE) { in ngx_http_scgi_merge_loc_conf()
1392 conf->upstream.busy_buffers_size = 2 * size; in ngx_http_scgi_merge_loc_conf()
1394 conf->upstream.busy_buffers_size = in ngx_http_scgi_merge_loc_conf()
1395 conf->upstream.busy_buffers_size_conf; in ngx_http_scgi_merge_loc_conf()
1398 if (conf->upstream.busy_buffers_size < size) { in ngx_http_scgi_merge_loc_conf()
1407 if (conf->upstream.busy_buffers_size in ngx_http_scgi_merge_loc_conf()
1408 > (conf->upstream.bufs.num - 1) * conf->upstream.bufs.size) in ngx_http_scgi_merge_loc_conf()
1418 ngx_conf_merge_size_value(conf->upstream.temp_file_write_size_conf, in ngx_http_scgi_merge_loc_conf()
1419 prev->upstream.temp_file_write_size_conf, in ngx_http_scgi_merge_loc_conf()
1422 if (conf->upstream.temp_file_write_size_conf == NGX_CONF_UNSET_SIZE) { in ngx_http_scgi_merge_loc_conf()
1423 conf->upstream.temp_file_write_size = 2 * size; in ngx_http_scgi_merge_loc_conf()
1425 conf->upstream.temp_file_write_size = in ngx_http_scgi_merge_loc_conf()
1426 conf->upstream.temp_file_write_size_conf; in ngx_http_scgi_merge_loc_conf()
1429 if (conf->upstream.temp_file_write_size < size) { in ngx_http_scgi_merge_loc_conf()
1439 ngx_conf_merge_size_value(conf->upstream.max_temp_file_size_conf, in ngx_http_scgi_merge_loc_conf()
1440 prev->upstream.max_temp_file_size_conf, in ngx_http_scgi_merge_loc_conf()
1443 if (conf->upstream.max_temp_file_size_conf == NGX_CONF_UNSET_SIZE) { in ngx_http_scgi_merge_loc_conf()
1444 conf->upstream.max_temp_file_size = 1024 * 1024 * 1024; in ngx_http_scgi_merge_loc_conf()
1446 conf->upstream.max_temp_file_size = in ngx_http_scgi_merge_loc_conf()
1447 conf->upstream.max_temp_file_size_conf; in ngx_http_scgi_merge_loc_conf()
1450 if (conf->upstream.max_temp_file_size != 0 in ngx_http_scgi_merge_loc_conf()
1451 && conf->upstream.max_temp_file_size < size) in ngx_http_scgi_merge_loc_conf()
1463 ngx_conf_merge_bitmask_value(conf->upstream.ignore_headers, in ngx_http_scgi_merge_loc_conf()
1464 prev->upstream.ignore_headers, in ngx_http_scgi_merge_loc_conf()
1468 ngx_conf_merge_bitmask_value(conf->upstream.next_upstream, in ngx_http_scgi_merge_loc_conf()
1469 prev->upstream.next_upstream, in ngx_http_scgi_merge_loc_conf()
1474 if (conf->upstream.next_upstream & NGX_HTTP_UPSTREAM_FT_OFF) { in ngx_http_scgi_merge_loc_conf()
1475 conf->upstream.next_upstream = NGX_CONF_BITMASK_SET in ngx_http_scgi_merge_loc_conf()
1479 if (ngx_conf_merge_path_value(cf, &conf->upstream.temp_path, in ngx_http_scgi_merge_loc_conf()
1480 prev->upstream.temp_path, in ngx_http_scgi_merge_loc_conf()
1489 if (conf->upstream.cache == NGX_CONF_UNSET) { in ngx_http_scgi_merge_loc_conf()
1490 ngx_conf_merge_value(conf->upstream.cache, in ngx_http_scgi_merge_loc_conf()
1491 prev->upstream.cache, 0); in ngx_http_scgi_merge_loc_conf()
1493 conf->upstream.cache_zone = prev->upstream.cache_zone; in ngx_http_scgi_merge_loc_conf()
1494 conf->upstream.cache_value = prev->upstream.cache_value; in ngx_http_scgi_merge_loc_conf()
1497 if (conf->upstream.cache_zone && conf->upstream.cache_zone->data == NULL) { in ngx_http_scgi_merge_loc_conf()
1500 shm_zone = conf->upstream.cache_zone; in ngx_http_scgi_merge_loc_conf()
1509 ngx_conf_merge_uint_value(conf->upstream.cache_min_uses, in ngx_http_scgi_merge_loc_conf()
1510 prev->upstream.cache_min_uses, 1); in ngx_http_scgi_merge_loc_conf()
1512 ngx_conf_merge_off_value(conf->upstream.cache_max_range_offset, in ngx_http_scgi_merge_loc_conf()
1513 prev->upstream.cache_max_range_offset, in ngx_http_scgi_merge_loc_conf()
1516 ngx_conf_merge_bitmask_value(conf->upstream.cache_use_stale, in ngx_http_scgi_merge_loc_conf()
1517 prev->upstream.cache_use_stale, in ngx_http_scgi_merge_loc_conf()
1521 if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_OFF) { in ngx_http_scgi_merge_loc_conf()
1522 conf->upstream.cache_use_stale = NGX_CONF_BITMASK_SET in ngx_http_scgi_merge_loc_conf()
1526 if (conf->upstream.cache_use_stale & NGX_HTTP_UPSTREAM_FT_ERROR) { in ngx_http_scgi_merge_loc_conf()
1527 conf->upstream.cache_use_stale |= NGX_HTTP_UPSTREAM_FT_NOLIVE; in ngx_http_scgi_merge_loc_conf()
1530 if (conf->upstream.cache_methods == 0) { in ngx_http_scgi_merge_loc_conf()
1531 conf->upstream.cache_methods = prev->upstream.cache_methods; in ngx_http_scgi_merge_loc_conf()
1534 conf->upstream.cache_methods |= NGX_HTTP_GET|NGX_HTTP_HEAD; in ngx_http_scgi_merge_loc_conf()
1536 ngx_conf_merge_ptr_value(conf->upstream.cache_bypass, in ngx_http_scgi_merge_loc_conf()
1537 prev->upstream.cache_bypass, NULL); in ngx_http_scgi_merge_loc_conf()
1539 ngx_conf_merge_ptr_value(conf->upstream.no_cache, in ngx_http_scgi_merge_loc_conf()
1540 prev->upstream.no_cache, NULL); in ngx_http_scgi_merge_loc_conf()
1542 ngx_conf_merge_ptr_value(conf->upstream.cache_valid, in ngx_http_scgi_merge_loc_conf()
1543 prev->upstream.cache_valid, NULL); in ngx_http_scgi_merge_loc_conf()
1549 if (conf->upstream.cache && conf->cache_key.value.data == NULL) { in ngx_http_scgi_merge_loc_conf()
1554 ngx_conf_merge_value(conf->upstream.cache_lock, in ngx_http_scgi_merge_loc_conf()
1555 prev->upstream.cache_lock, 0); in ngx_http_scgi_merge_loc_conf()
1557 ngx_conf_merge_msec_value(conf->upstream.cache_lock_timeout, in ngx_http_scgi_merge_loc_conf()
1558 prev->upstream.cache_lock_timeout, 5000); in ngx_http_scgi_merge_loc_conf()
1560 ngx_conf_merge_msec_value(conf->upstream.cache_lock_age, in ngx_http_scgi_merge_loc_conf()
1561 prev->upstream.cache_lock_age, 5000); in ngx_http_scgi_merge_loc_conf()
1563 ngx_conf_merge_value(conf->upstream.cache_revalidate, in ngx_http_scgi_merge_loc_conf()
1564 prev->upstream.cache_revalidate, 0); in ngx_http_scgi_merge_loc_conf()
1566 ngx_conf_merge_value(conf->upstream.cache_background_update, in ngx_http_scgi_merge_loc_conf()
1567 prev->upstream.cache_background_update, 0); in ngx_http_scgi_merge_loc_conf()
1571 ngx_conf_merge_value(conf->upstream.pass_request_headers, in ngx_http_scgi_merge_loc_conf()
1572 prev->upstream.pass_request_headers, 1); in ngx_http_scgi_merge_loc_conf()
1573 ngx_conf_merge_value(conf->upstream.pass_request_body, in ngx_http_scgi_merge_loc_conf()
1574 prev->upstream.pass_request_body, 1); in ngx_http_scgi_merge_loc_conf()
1576 ngx_conf_merge_value(conf->upstream.intercept_errors, in ngx_http_scgi_merge_loc_conf()
1577 prev->upstream.intercept_errors, 0); in ngx_http_scgi_merge_loc_conf()
1583 if (ngx_http_upstream_hide_headers_hash(cf, &conf->upstream, in ngx_http_scgi_merge_loc_conf()
1584 &prev->upstream, ngx_http_scgi_hide_headers, &hash) in ngx_http_scgi_merge_loc_conf()
1593 && conf->upstream.upstream == NULL && conf->scgi_lengths == NULL) in ngx_http_scgi_merge_loc_conf()
1595 conf->upstream.upstream = prev->upstream.upstream; in ngx_http_scgi_merge_loc_conf()
1601 && (conf->upstream.upstream || conf->scgi_lengths)) in ngx_http_scgi_merge_loc_conf()
1621 if (conf->upstream.cache) { in ngx_http_scgi_merge_loc_conf()
1865 if (scf->upstream.upstream || scf->scgi_lengths) { in ngx_http_scgi_pass()
1902 scf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); in ngx_http_scgi_pass()
1903 if (scf->upstream.upstream == NULL) { in ngx_http_scgi_pass()
1923 if (scf->upstream.store != NGX_CONF_UNSET) { in ngx_http_scgi_store()
1930 scf->upstream.store = 0; in ngx_http_scgi_store()
1935 if (scf->upstream.cache > 0) { in ngx_http_scgi_store()
1940 scf->upstream.store = 1; in ngx_http_scgi_store()
1953 sc.lengths = &scf->upstream.store_lengths; in ngx_http_scgi_store()
1954 sc.values = &scf->upstream.store_values; in ngx_http_scgi_store()
1980 if (scf->upstream.cache != NGX_CONF_UNSET) { in ngx_http_scgi_cache()
1985 scf->upstream.cache = 0; in ngx_http_scgi_cache()
1989 if (scf->upstream.store > 0) { in ngx_http_scgi_cache()
1993 scf->upstream.cache = 1; in ngx_http_scgi_cache()
2007 scf->upstream.cache_value = ngx_palloc(cf->pool, in ngx_http_scgi_cache()
2009 if (scf->upstream.cache_value == NULL) { in ngx_http_scgi_cache()
2013 *scf->upstream.cache_value = cv; in ngx_http_scgi_cache()
2018 scf->upstream.cache_zone = ngx_shared_memory_add(cf, &value[1], 0, in ngx_http_scgi_cache()
2020 if (scf->upstream.cache_zone == NULL) { in ngx_http_scgi_cache()