comparison src/http/v2/ngx_http_v2_filter_module.c @ 6792:45d553812055

HTTP/2: flow control debugging.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 02 Nov 2016 11:47:12 +0300
parents a2b310a8b2af
children 3834951e32ab
comparison
equal deleted inserted replaced
6791:cb4a4e9bba8e 6792:45d553812055
1077 1077
1078 static ngx_inline ngx_int_t 1078 static ngx_inline ngx_int_t
1079 ngx_http_v2_flow_control(ngx_http_v2_connection_t *h2c, 1079 ngx_http_v2_flow_control(ngx_http_v2_connection_t *h2c,
1080 ngx_http_v2_stream_t *stream) 1080 ngx_http_v2_stream_t *stream)
1081 { 1081 {
1082 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
1083 "http2:%ui available windows: conn:%uz stream:%z",
1084 stream->node->id, h2c->send_window, stream->send_window);
1085
1082 if (stream->send_window <= 0) { 1086 if (stream->send_window <= 0) {
1083 stream->exhausted = 1; 1087 stream->exhausted = 1;
1084 return NGX_DECLINED; 1088 return NGX_DECLINED;
1085 } 1089 }
1086 1090