changeset 2269:7155dbb2317e

fix r2122: *) update file buf pointers, *) avoid "zero buf" alert
author Igor Sysoev <igor@sysoev.ru>
date Thu, 02 Oct 2008 15:38:26 +0000
parents 33556140681a
children e274c8e5d49c
files src/http/modules/ngx_http_range_filter_module.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_range_filter_module.c
+++ b/src/http/modules/ngx_http_range_filter_module.c
@@ -654,7 +654,13 @@ ngx_http_range_singlepart_body(ngx_http_
             ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                            "http range body skip");
 
+            if (buf->in_file) {
+                buf->file_pos = buf->file_last;
+            }
+
             buf->pos = buf->last;
+            buf->sync = 1;
+
             continue;
         }