Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
May 04, 2012 07:36AM
Author: mdounin
Date: 2012-05-04 11:35:22 +0000 (Fri, 04 May 2012)
New Revision: 4615
URL: http://trac.nginx.org/nginx/changeset/4615/nginx

Log:
Added write event handler reset in ngx_http_named_location().

On internal redirects this happens via ngx_http_handler() call, which is
not called on named location redirect. As a result incorrect write handler
remained (if previously set) and this might cause incorrect behaviour (likely
request hang).

Patch by Yichun Zhang (agentzh).


Modified:
trunk/src/http/ngx_http_core_module.c

Modified: trunk/src/http/ngx_http_core_module.c
===================================================================
--- trunk/src/http/ngx_http_core_module.c 2012-04-29 22:02:18 UTC (rev 4614)
+++ trunk/src/http/ngx_http_core_module.c 2012-05-04 11:35:22 UTC (rev 4615)
@@ -2599,6 +2599,7 @@

r->phase_handler = cmcf->phase_engine.location_rewrite_index;

+ r->write_event_handler = ngx_http_core_run_phases;
ngx_http_core_run_phases(r);

return NGX_DONE;

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

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

Anonymous User 1113 May 04, 2012 07:36AM



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

Online Users

Guests: 299
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