diff src/event/ngx_event_pipe.c @ 188:0061d1f0908d

nginx-0.0.1-2003-11-18-11:04:34 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 18 Nov 2003 08:04:34 +0000
parents 5a9bbe99008b
children c966c09be66b
line wrap: on
line diff
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -54,6 +54,8 @@ int ngx_event_pipe(ngx_event_pipe_t *p, 
         }
     }
 
+ngx_log_debug(p->log, "DOWN: %d" _ p->downstream->fd);
+
     if (p->downstream->fd != -1) {
         wev = p->downstream->write;
 
@@ -673,12 +675,15 @@ static int ngx_event_pipe_drain_chains(n
     for ( ;; ) {
         if (p->busy) {
             cl = p->busy;
+            p->busy = NULL;
 
         } else if (p->out) {
             cl = p->out;
+            p->out = NULL;
 
         } else if (p->in) {
             cl = p->in;
+            p->in = NULL;
 
         } else {
             return NGX_OK;