diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-14 07:20:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-14 07:20:34 +0000 |
commit | 7f9d894e1069306f7361201a77efbe7b866024ff (patch) | |
tree | 9779ce5dd7d38af4c8039047768cedc92c31ec1f /src/os/unix/ngx_writev_chain.c | |
parent | 45890ea8c13a561fe3fd66bf639ad429f3c18846 (diff) | |
download | nginx-7f9d894e1069306f7361201a77efbe7b866024ff.tar.gz nginx-7f9d894e1069306f7361201a77efbe7b866024ff.zip |
nginx-0.0.1-2003-11-14-10:20:34 import
Diffstat (limited to 'src/os/unix/ngx_writev_chain.c')
-rw-r--r-- | src/os/unix/ngx_writev_chain.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/os/unix/ngx_writev_chain.c b/src/os/unix/ngx_writev_chain.c index 6ead65f3a..9b9e62939 100644 --- a/src/os/unix/ngx_writev_chain.c +++ b/src/os/unix/ngx_writev_chain.c @@ -24,6 +24,7 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) iov = NULL; /* create the iovec and coalesce the neighbouring hunks */ + for (cl = in; cl; cl = cl->next) { if (prev == cl->hunk->pos) { @@ -57,7 +58,7 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) sent = n > 0 ? n : 0; #if (NGX_DEBUG_WRITE_CHAIN) - ngx_log_debug(c->log, "writev: %qd" _ sent); + ngx_log_debug(c->log, "writev: " OFF_FMT _ sent); #endif c->sent += sent; @@ -75,12 +76,6 @@ ngx_log_debug(c->log, "SIZE: %d" _ size); cl->hunk->pos = cl->hunk->last; } -#if 0 - if (cl->hunk->type & NGX_HUNK_FILE) { - cl->hunk->file_pos = cl->hunk->file_last; - } -#endif - continue; } @@ -88,12 +83,6 @@ ngx_log_debug(c->log, "SIZE: %d" _ size); cl->hunk->pos += sent; } -#if 0 - if (cl->hunk->type & NGX_HUNK_FILE) { - cl->hunk->file_pos += sent; - } -#endif - break; } |