[nginx] HTTP/2: flow control debugging.

Sergey Kandaurov pluknet at nginx.com
Wed Nov 2 08:48:16 UTC 2016


details:   http://hg.nginx.org/nginx/rev/45d553812055
branches:  
changeset: 6792:45d553812055
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Wed Nov 02 11:47:12 2016 +0300
description:
HTTP/2: flow control debugging.

diffstat:

 src/http/v2/ngx_http_v2_filter_module.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r cb4a4e9bba8e -r 45d553812055 src/http/v2/ngx_http_v2_filter_module.c
--- a/src/http/v2/ngx_http_v2_filter_module.c	Tue Nov 01 20:39:21 2016 +0300
+++ b/src/http/v2/ngx_http_v2_filter_module.c	Wed Nov 02 11:47:12 2016 +0300
@@ -1079,6 +1079,10 @@ static ngx_inline ngx_int_t
 ngx_http_v2_flow_control(ngx_http_v2_connection_t *h2c,
     ngx_http_v2_stream_t *stream)
 {
+    ngx_log_debug3(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
+                   "http2:%ui available windows: conn:%uz stream:%z",
+                   stream->node->id, h2c->send_window, stream->send_window);
+
     if (stream->send_window <= 0) {
         stream->exhausted = 1;
         return NGX_DECLINED;



More information about the nginx-devel mailing list