comparison src/http/modules/ngx_http_image_filter_module.c @ 486:6484cbba0222 NGINX_0_7_55

nginx 0.7.55 *) Bugfix: the http_XXX parameters in "proxy_cache_use_stale" and "fastcgi_cache_use_stale" directives did not work. *) Bugfix: fastcgi cache did not cache header only responses. *) Bugfix: of "select() failed (9: Bad file descriptor)" error in nginx/Unix and "select() failed (10022: ...)" error in nginx/Windows. *) Bugfix: a segmentation fault might occur in worker process, if an "debug_connection" directive was used; the bug had appeared in 0.7.54. *) Bugfix: fix ngx_http_image_filter_module building errors. *) Bugfix: the files bigger than 2G could not be transferred using $r->sendfile. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Wed, 06 May 2009 00:00:00 +0400
parents ed5e10fb40fc
children 829f9a66a659
comparison
equal deleted inserted replaced
485:21824e8058e6 486:6484cbba0222
184 184
185 ngx_http_set_ctx(r, ctx, ngx_http_image_filter_module); 185 ngx_http_set_ctx(r, ctx, ngx_http_image_filter_module);
186 186
187 len = r->headers_out.content_length_n; 187 len = r->headers_out.content_length_n;
188 188
189 if (len != -1 && len > conf->buffer_size) { 189 if (len != -1 && len > (off_t) conf->buffer_size) {
190 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 190 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
191 "image filter: too big response: %O", len); 191 "image filter: too big response: %O", len);
192 192
193 return NGX_ERROR; 193 return NGX_ERROR;
194 } 194 }