Welcome! Log In Create A New Profile

Advanced

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

Valentin Bartenev
June 05, 2013 09:42AM
details: http://hg.nginx.org/nginx/rev/ee739104d164
branches:
changeset: 5243:ee739104d164
user: Valentin Bartenev <vbart@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);


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

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

Valentin Bartenev 777 June 05, 2013 09:42AM



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

Online Users

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