[nginx] Status: the "last_in_chain" flag must be set.

Valentin Bartenev vbart at nginx.com
Wed Jun 5 13:42:01 UTC 2013


details:   http://hg.nginx.org/nginx/rev/ee739104d164
branches:  
changeset: 5243:ee739104d164
user:      Valentin Bartenev <vbart at nginx.com>
date:      Wed Jun 05 16:22:40 2013 +0400
description:
Status: the "last_in_chain" flag must be set.

The module always produces only one and obviously the last buffer in chain.

diffstat:

 src/http/modules/ngx_http_stub_status_module.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 5776804fff04 -r ee739104d164 src/http/modules/ngx_http_stub_status_module.c
--- a/src/http/modules/ngx_http_stub_status_module.c	Wed Jun 05 02:13:52 2013 +0400
+++ b/src/http/modules/ngx_http_stub_status_module.c	Wed Jun 05 16:22:40 2013 +0400
@@ -145,6 +145,7 @@ static ngx_int_t ngx_http_status_handler
     r->headers_out.content_length_n = b->last - b->pos;
 
     b->last_buf = (r == r->main) ? 1 : 0;
+    b->last_in_chain = 1;
 
     rc = ngx_http_send_header(r);
 



More information about the nginx-devel mailing list