Mercurial > hg > nginx-quic
comparison src/core/ngx_hunk.c @ 151:2d9e4a8b6d11
nginx-0.0.1-2003-10-20-21:14:07 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 20 Oct 2003 17:14:07 +0000 |
parents | da00cde00e8a |
children | c71aeb75c071 |
comparison
equal
deleted
inserted
replaced
150:ad5f382c9e7d | 151:2d9e4a8b6d11 |
---|---|
142 } | 142 } |
143 | 143 |
144 *out = NULL; | 144 *out = NULL; |
145 | 145 |
146 while (*busy) { | 146 while (*busy) { |
147 if ((*busy)->hunk->pos != (*busy)->hunk->last) { | 147 if (ngx_hunk_size((*busy)->hunk) > 0) { |
148 break; | 148 break; |
149 } | 149 } |
150 #if 0 | |
151 if ((*busy)->hunk->type & NGX_HUNK_IN_MEMORY) { | |
152 if ((*busy)->hunk->pos != (*busy)->hunk->last) { | |
153 break; | |
154 } | |
155 | |
156 } else { | |
157 if ((*busy)->hunk->file_pos != (*busy)->hunk->file_last) { | |
158 break; | |
159 } | |
160 } | |
161 #endif | |
150 | 162 |
151 #if (HAVE_WRITE_ZEROCOPY) | 163 #if (HAVE_WRITE_ZEROCOPY) |
152 if ((*busy)->hunk->type & NGX_HUNK_ZEROCOPY_BUSY) { | 164 if ((*busy)->hunk->type & NGX_HUNK_ZEROCOPY_BUSY) { |
153 break; | 165 break; |
154 } | 166 } |
155 #endif | 167 #endif |
156 if (((*busy)->hunk->type & NGX_HUNK_TEMP) == 0) { | 168 |
169 /* TODO: change to hunk->tag */ | |
170 | |
171 if (!((*busy)->hunk->type & NGX_HUNK_TEMP)) { | |
157 *busy = (*busy)->next; | 172 *busy = (*busy)->next; |
158 continue; | 173 continue; |
159 } | 174 } |
160 | 175 |
161 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start; | 176 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start; |