aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-20 17:14:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-20 17:14:07 +0000
commit54276be80c35fcff04da8cd129452995e9ba8ba5 (patch)
tree78288161f5b678ca73acc281e64302034cf3e54a /src/core/ngx_hunk.c
parent13829b7316411fa13c848015e1011a53405f37be (diff)
downloadnginx-54276be80c35fcff04da8cd129452995e9ba8ba5.tar.gz
nginx-54276be80c35fcff04da8cd129452995e9ba8ba5.zip
nginx-0.0.1-2003-10-20-21:14:07 import
Diffstat (limited to 'src/core/ngx_hunk.c')
-rw-r--r--src/core/ngx_hunk.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c
index 517a1af23..df213c7b3 100644
--- a/src/core/ngx_hunk.c
+++ b/src/core/ngx_hunk.c
@@ -144,16 +144,31 @@ void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
*out = NULL;
while (*busy) {
- if ((*busy)->hunk->pos != (*busy)->hunk->last) {
+ if (ngx_hunk_size((*busy)->hunk) > 0) {
break;
}
+#if 0
+ if ((*busy)->hunk->type & NGX_HUNK_IN_MEMORY) {
+ if ((*busy)->hunk->pos != (*busy)->hunk->last) {
+ break;
+ }
+
+ } else {
+ if ((*busy)->hunk->file_pos != (*busy)->hunk->file_last) {
+ break;
+ }
+ }
+#endif
#if (HAVE_WRITE_ZEROCOPY)
if ((*busy)->hunk->type & NGX_HUNK_ZEROCOPY_BUSY) {
break;
}
#endif
- if (((*busy)->hunk->type & NGX_HUNK_TEMP) == 0) {
+
+ /* TODO: change to hunk->tag */
+
+ if (!((*busy)->hunk->type & NGX_HUNK_TEMP)) {
*busy = (*busy)->next;
continue;
}