diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-05-22 15:23:47 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-05-22 15:23:47 +0000 |
commit | 6a1cc903bf2db47b7061791b9e878ededcba1aa4 (patch) | |
tree | 5e9d78365d85901394f312d8eed6a1811692891b /src/os/unix/ngx_writev_chain.c | |
parent | fa73aac7747c9d0a8575eb2beffcdab50171e006 (diff) | |
download | nginx-6a1cc903bf2db47b7061791b9e878ededcba1aa4.tar.gz nginx-6a1cc903bf2db47b7061791b9e878ededcba1aa4.zip |
nginx-0.0.1-2003-05-22-19:23:47 import
Diffstat (limited to 'src/os/unix/ngx_writev_chain.c')
-rw-r--r-- | src/os/unix/ngx_writev_chain.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/unix/ngx_writev_chain.c b/src/os/unix/ngx_writev_chain.c index fdaa52a48..b667bc507 100644 --- a/src/os/unix/ngx_writev_chain.c +++ b/src/os/unix/ngx_writev_chain.c @@ -62,6 +62,8 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) size = ce->hunk->last - ce->hunk->pos; +ngx_log_debug(c->log, "SIZE: %d" _ size); + if (sent >= size) { sent -= size; @@ -69,9 +71,11 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) ce->hunk->pos = ce->hunk->last; } +#if 0 if (ce->hunk->type & NGX_HUNK_FILE) { ce->hunk->file_pos = ce->hunk->file_last; } +#endif continue; } @@ -80,9 +84,11 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) ce->hunk->pos += sent; } +#if 0 if (ce->hunk->type & NGX_HUNK_FILE) { ce->hunk->file_pos += sent; } +#endif break; } |