Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

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

$
0
0
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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>