]> git.kaiwu.me - nginx.git/commitdiff
update r2422
authorIgor Sysoev <igor@sysoev.ru>
Wed, 24 Dec 2008 06:11:04 +0000 (06:11 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 24 Dec 2008 06:11:04 +0000 (06:11 +0000)
src/http/ngx_http_core_module.c

index 458e4565a9032a6c670bd9f536d3d213844695b0..e28197356d40906832642f23eb20d3ed7631b5a6 100644 (file)
@@ -2093,19 +2093,10 @@ ngx_http_subrequest(ngx_http_request_t *r,
     sr->read_event_handler = ngx_http_request_empty_handler;
     sr->write_event_handler = ngx_http_handler;
 
-    if (c->data == r) {
-
-        for (pr = r->postponed; pr; pr = pr->next) {
-            if (pr->request) {
-                goto no_activate;
-            }
-        }
-
+    if (c->data == r && r->postponed == NULL) {
         c->data = sr;
     }
 
-no_activate:
-
     sr->in_addr = r->in_addr;
     sr->port = r->port;
     sr->port_text = r->port_text;