Klaus Demo nginx / 25870d8
reinit proxy/fastcgi header parser before ngx_http_upstream_cache_send() Igor Sysoev 10 years ago
1 changed file(s) with 18 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
14711471 static ngx_int_t
14721472 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
14731473 {
1474 ngx_int_t rc;
14741475 ngx_uint_t status;
14751476 ngx_http_upstream_next_t *un;
14761477
14901491 #if (NGX_HTTP_CACHE)
14911492
14921493 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) {
1493 ngx_http_upstream_finalize_request(r, u,
1494 ngx_http_upstream_cache_send(r, u));
1494
1495 rc = u->reinit_request(r);
1496
1497 if (rc == NGX_OK) {
1498 rc = ngx_http_upstream_cache_send(r, u);
1499 }
1500
1501 ngx_http_upstream_finalize_request(r, u, rc);
14951502 return NGX_OK;
14961503 }
14971504
26422649 #if (NGX_HTTP_CACHE)
26432650
26442651 if (u->stale_cache && (u->conf->cache_use_stale & ft_type)) {
2645
2646 ngx_http_upstream_finalize_request(r, u,
2647 ngx_http_upstream_cache_send(r, u));
2652 ngx_int_t rc;
2653
2654 rc = u->reinit_request(r);
2655
2656 if (rc == NGX_OK) {
2657 rc = ngx_http_upstream_cache_send(r, u);
2658 }
2659
2660 ngx_http_upstream_finalize_request(r, u, rc);
26482661 return;
26492662 }
26502663 #endif