Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4641 - trunk/src/http

Anonymous User
May 17, 2012 01:42PM
Author: mdounin
Date: 2012-05-17 17:41:40 +0000 (Thu, 17 May 2012)
New Revision: 4641
URL: http://trac.nginx.org/nginx/changeset/4641/nginx

Log:
Fixed segfault with filter_finalize introduced in r4621 (1.3.0).

Example configuration to reproduce:

location /image/ {
error_page 415 = /zero;
image_filter crop 100 100;
proxy_pass http://127.0.0.1:8080;
proxy_store on;
}

location /zero {
return 204;
}

The problem appeared if upstream returned (big enough) non-image file,
causing 415 to be generated by image filter.


Modified:
trunk/src/http/ngx_http_request.c

Modified: trunk/src/http/ngx_http_request.c
===================================================================
--- trunk/src/http/ngx_http_request.c 2012-05-17 15:12:45 UTC (rev 4640)
+++ trunk/src/http/ngx_http_request.c 2012-05-17 17:41:40 UTC (rev 4641)
@@ -1933,8 +1933,6 @@

if (rc == NGX_OK && r->filter_finalize) {
c->error = 1;
- ngx_http_finalize_connection(r);
- return;
}

if (rc == NGX_DECLINED) {

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4641 - trunk/src/http

Anonymous User 1458 May 17, 2012 01:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready