]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: flow control debugging.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 2 Nov 2016 08:47:12 +0000 (11:47 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 2 Nov 2016 08:47:12 +0000 (11:47 +0300)
src/http/v2/ngx_http_v2_filter_module.c

index 4ab779121839be3a2b4fa6a1ab9cdbc2cf643e34..878020e5a0b4e2f3d17efdc84f4838abc51bdc40 100644 (file)
@@ -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;