comparison src/http/ngx_http_core_module.c @ 6906:1aeaae6e9446

Upstream: proxy_cache_background_update and friends. The directives enable cache updates in subrequests.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 10 Feb 2017 15:13:41 +0300
parents 25203fc377fb
children 8b7fd958c59f
comparison
equal deleted inserted replaced
6905:9a9e13686869 6906:1aeaae6e9446
2563 sr->start_msec = tp->msec; 2563 sr->start_msec = tp->msec;
2564 2564
2565 r->main->count++; 2565 r->main->count++;
2566 2566
2567 *psr = sr; 2567 *psr = sr;
2568
2569 if (flags & NGX_HTTP_SUBREQUEST_CLONE) {
2570 sr->method = r->method;
2571 sr->method_name = r->method_name;
2572 sr->loc_conf = r->loc_conf;
2573 sr->valid_location = r->valid_location;
2574 sr->phase_handler = r->phase_handler;
2575 sr->write_event_handler = ngx_http_core_run_phases;
2576
2577 ngx_http_update_location_config(sr);
2578 }
2568 2579
2569 return ngx_http_post_request(sr, NULL); 2580 return ngx_http_post_request(sr, NULL);
2570 } 2581 }
2571 2582
2572 2583