Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 3147:cbb1add4a6fe
fail if file size was changed
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Sep 2009 09:44:57 +0000 |
parents | 4c90c9129a82 |
children | b1b1775698d5 |
comparison
equal
deleted
inserted
replaced
3146:29ba1de1ab0b | 3147:cbb1add4a6fe |
---|---|
569 | 569 |
570 if (n != size) { | 570 if (n != size) { |
571 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0, | 571 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0, |
572 ngx_read_file_n " read only %z of %O from \"%s\"", | 572 ngx_read_file_n " read only %z of %O from \"%s\"", |
573 n, size, src->file->name.data); | 573 n, size, src->file->name.data); |
574 if (n == 0) { | 574 return NGX_ERROR; |
575 return NGX_ERROR; | |
576 } | |
577 } | 575 } |
578 | 576 |
579 dst->last += n; | 577 dst->last += n; |
580 | 578 |
581 if (sendfile) { | 579 if (sendfile) { |