ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image_filter too big response обрывае т соединение



On Sat, Jul 24, 2010 at 12:53:32PM +0400, Alexander Azarov wrote:

> Добрый день!
> 
> При возникновении ошибки
> 
> 2010/07/24 10:43:40 [error] 14214#0: *309 image filter: too big response: 
> 3672227 while reading response header from upstream, client: ....
> 
> Nginx обрывает соединение. Хочется получать 415.

Патч.


-- 
Игорь Сысоев
http://sysoev.ru
Index: src/http/modules/ngx_http_image_filter_module.c
===================================================================
--- src/http/modules/ngx_http_image_filter_module.c     (revision 3041)
+++ src/http/modules/ngx_http_image_filter_module.c     (working copy)
@@ -228,7 +228,7 @@
         ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                       "image filter: too big response: %O", len);
 
-        return NGX_ERROR;
+        return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE;
     }
 
     if (len == -1) {
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.