Mercurial > hg > nginx-vendor-0-7
comparison src/http/ngx_http_upstream.c @ 488:829f9a66a659 NGINX_0_7_56
nginx 0.7.56
*) Feature: nginx/Windows supports IPv6 in a "listen" directive of the
HTTP module.
*) Bugfix: in ngx_http_image_filter_module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 11 May 2009 00:00:00 +0400 |
parents | 6484cbba0222 |
children | 98143f74eb3d |
comparison
equal
deleted
inserted
replaced
487:e98b980b4fe7 | 488:829f9a66a659 |
---|---|
1481 | 1481 |
1482 | 1482 |
1483 static ngx_int_t | 1483 static ngx_int_t |
1484 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) | 1484 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) |
1485 { | 1485 { |
1486 ngx_int_t rc; | |
1487 ngx_uint_t status; | 1486 ngx_uint_t status; |
1488 ngx_http_upstream_next_t *un; | 1487 ngx_http_upstream_next_t *un; |
1489 | 1488 |
1490 status = u->headers_in.status_n; | 1489 status = u->headers_in.status_n; |
1491 | 1490 |
1501 } | 1500 } |
1502 | 1501 |
1503 #if (NGX_HTTP_CACHE) | 1502 #if (NGX_HTTP_CACHE) |
1504 | 1503 |
1505 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) { | 1504 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) { |
1505 ngx_int_t rc; | |
1506 | 1506 |
1507 rc = u->reinit_request(r); | 1507 rc = u->reinit_request(r); |
1508 | 1508 |
1509 if (rc == NGX_OK) { | 1509 if (rc == NGX_OK) { |
1510 rc = ngx_http_upstream_cache_send(r, u); | 1510 rc = ngx_http_upstream_cache_send(r, u); |