629532 image filter: too big response: 1192722 while sending response to client

Anton Gorlov stalker на altlinux.ru
Пн Авг 8 06:24:02 UTC 2011


На 1 из серверов обнаружилась интересная проблемка с модулем  image 
filter - на некоторых картинках выдаёт ошибку

629532 image filter: too big response: 1192722 while sending response to 
client



if ($uri ~ ^/frames/thumb/) {
	set $w 100;
         set $h 150;
         }


location ~^/frames/thumb/.*\.(?:jpg|gif|png)$ {
root /var/www/vhosts/storage-1/www/frames;
rewrite ^/frames/thumb/(.*)$ /$1;
         image_filter resize $w $h;
         break;
         }

на картинке
file 104.png
104.png: PNG image, 375 x 590, 8-bit/color RGBA, non-interlaced

отрабатывает успешно, а на
file 222.png
222.png: PNG image, 800 x 1123, 8-bit/color RGBA, non-interlaced

выдаёт вышеназванную ошибку.

nginx -V
nginx version: nginx/0.8.52
TLS SNI support enabled
configure arguments: --prefix=/ --conf-path=/etc/nginx/nginx.conf 
--sbin-path=/usr/sbin --error-log-path=/var/log/nginx/nginx.error.log 
--http-log-path=/var/log/nginx/nginx.log 
--http-client-body-temp-path=/var/spool/nginx/tmp/client 
--http-proxy-temp-path=/var/spool/nginx/tmp/proxy 
--http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi 
--http-uwsgi-temp-path=/var/spool/nginx/tmp/uwsgi 
--http-scgi-temp-path=/var/spool/nginx/tmp/scgi 
--pid-path=/var/run/nginx.pid --user=_nginx --group=_nginx 
--with-http_ssl_module --with-cc-opt='-I /usr/include/pcre/' 
--with-rtsig_module --with-select_module --with-poll_module 
--with-aio_module --with-file-aio --with-mail --with-mail_ssl_module 
--with-imap --with-imap_ssl_module --with-md5=/usr/lib64 
--with-http_ssl_module --with-http_realip_module 
--with-http_addition_module --with-http_sub_module 
--with-http_dav_module --with-http_flv_module 
--with-http_gzip_static_module --with-http_stub_status_module 
--with-http_image_filter_module --with-http_perl_module 
--add-module=nginx_upload_module/ --add-module=nginx_upload-progress-module/



Подробная информация о списке рассылки nginx-ru