Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 3049:67254117b774
request reference counter
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 26 Aug 2009 16:04:05 +0000 |
parents | 635c0006441e |
children | f54b02dbb12b |
comparison
equal
deleted
inserted
replaced
3048:846d0e2fa483 | 3049:67254117b774 |
---|---|
1258 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 1258 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
1259 "content phase: %ui", r->phase_handler); | 1259 "content phase: %ui", r->phase_handler); |
1260 | 1260 |
1261 rc = ph->handler(r); | 1261 rc = ph->handler(r); |
1262 | 1262 |
1263 if (rc == NGX_DONE) { | |
1264 return NGX_OK; | |
1265 } | |
1266 | |
1267 if (rc != NGX_DECLINED) { | 1263 if (rc != NGX_DECLINED) { |
1268 ngx_http_finalize_request(r, rc); | 1264 ngx_http_finalize_request(r, rc); |
1269 return NGX_OK; | 1265 return NGX_OK; |
1270 } | 1266 } |
1271 | 1267 |
2124 sr->main_filter_need_in_memory = r->main_filter_need_in_memory; | 2120 sr->main_filter_need_in_memory = r->main_filter_need_in_memory; |
2125 | 2121 |
2126 sr->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1; | 2122 sr->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1; |
2127 | 2123 |
2128 r->main->subrequests++; | 2124 r->main->subrequests++; |
2125 r->main->count++; | |
2129 | 2126 |
2130 *psr = sr; | 2127 *psr = sr; |
2131 | 2128 |
2132 return ngx_http_post_request(sr); | 2129 return ngx_http_post_request(sr); |
2133 } | 2130 } |
2176 #if (NGX_HTTP_CACHE) | 2173 #if (NGX_HTTP_CACHE) |
2177 r->cache = NULL; | 2174 r->cache = NULL; |
2178 #endif | 2175 #endif |
2179 | 2176 |
2180 r->internal = 1; | 2177 r->internal = 1; |
2178 r->main->count++; | |
2181 | 2179 |
2182 ngx_http_handler(r); | 2180 ngx_http_handler(r); |
2183 | 2181 |
2184 return NGX_DONE; | 2182 return NGX_DONE; |
2185 } | 2183 } |
2189 ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name) | 2187 ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name) |
2190 { | 2188 { |
2191 ngx_http_core_srv_conf_t *cscf; | 2189 ngx_http_core_srv_conf_t *cscf; |
2192 ngx_http_core_loc_conf_t **clcfp; | 2190 ngx_http_core_loc_conf_t **clcfp; |
2193 ngx_http_core_main_conf_t *cmcf; | 2191 ngx_http_core_main_conf_t *cmcf; |
2192 | |
2193 r->main->count++; | |
2194 | 2194 |
2195 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | 2195 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); |
2196 | 2196 |
2197 if (cscf->named_locations) { | 2197 if (cscf->named_locations) { |
2198 | 2198 |