Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-12 17:58:45 +0300
committerIgor Sysoev <igor@sysoev.ru>2007-02-12 17:58:45 +0300
commit7cc1ea31e975c5f1847087cbc86549e51d4a9ab5 (patch)
tree3d668d72bc428aa720d427bd29aa5d4baee00e95
parent1131d87684c2c08a80e56fb35471ad1f01ff09b1 (diff)
correct r1100
-rw-r--r--src/event/ngx_event_pipe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c
index b91aafd4d..31efc0323 100644
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -502,11 +502,12 @@ ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p)
bsize = 0;
for (cl = p->busy; cl; cl = cl->next) {
- if (prev == cl->buf->start) {
- continue;
- }
if (cl->buf->recycled) {
+ if (prev == cl->buf->start) {
+ continue;
+ }
+
bsize += cl->buf->end - cl->buf->start;
prev = cl->buf->start;
}