Mercurial > hg > nginx-quic
comparison src/http/ngx_http_file_cache.c @ 3971:44f4fc874b2f
do not close connection if cache file is too small: replace it with valid one
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 24 Jul 2011 20:04:47 +0000 |
parents | 2d05952a324d |
children | c1a69e03bdf2 |
comparison
equal
deleted
inserted
replaced
3970:2d05952a324d | 3971:44f4fc874b2f |
---|---|
374 } | 374 } |
375 | 375 |
376 if ((size_t) n < c->header_start) { | 376 if ((size_t) n < c->header_start) { |
377 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, | 377 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, |
378 "cache file \"%s\" is too small", c->file.name.data); | 378 "cache file \"%s\" is too small", c->file.name.data); |
379 return NGX_ERROR; | 379 return NGX_DECLINED; |
380 } | 380 } |
381 | 381 |
382 h = (ngx_http_file_cache_header_t *) c->buf->pos; | 382 h = (ngx_http_file_cache_header_t *) c->buf->pos; |
383 | 383 |
384 if (h->crc32 != c->crc32) { | 384 if (h->crc32 != c->crc32) { |