Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 7241:190591ab0d76
HTTP/2: improved frame info debugging.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 19 Mar 2018 21:32:15 +0300 |
parents | 87e9e4aabf1b |
children | d588987701f4 1c6b6163c039 |
comparison
equal
deleted
inserted
replaced
7240:413189f03c8d | 7241:190591ab0d76 |
---|---|
1988 h2c->state.length); | 1988 h2c->state.length); |
1989 | 1989 |
1990 return ngx_http_v2_connection_error(h2c, NGX_HTTP_V2_SIZE_ERROR); | 1990 return ngx_http_v2_connection_error(h2c, NGX_HTTP_V2_SIZE_ERROR); |
1991 } | 1991 } |
1992 | 1992 |
1993 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | |
1994 "http2 SETTINGS frame"); | |
1995 | |
1993 return ngx_http_v2_state_settings_params(h2c, pos, end); | 1996 return ngx_http_v2_state_settings_params(h2c, pos, end); |
1994 } | 1997 } |
1995 | 1998 |
1996 | 1999 |
1997 static u_char * | 2000 static u_char * |
2128 | 2131 |
2129 if (end - pos < NGX_HTTP_V2_PING_SIZE) { | 2132 if (end - pos < NGX_HTTP_V2_PING_SIZE) { |
2130 return ngx_http_v2_state_save(h2c, pos, end, ngx_http_v2_state_ping); | 2133 return ngx_http_v2_state_save(h2c, pos, end, ngx_http_v2_state_ping); |
2131 } | 2134 } |
2132 | 2135 |
2133 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 2136 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, |
2134 "http2 PING frame, flags: %ud", h2c->state.flags); | 2137 "http2 PING frame"); |
2135 | 2138 |
2136 if (h2c->state.flags & NGX_HTTP_V2_ACK_FLAG) { | 2139 if (h2c->state.flags & NGX_HTTP_V2_ACK_FLAG) { |
2137 return ngx_http_v2_state_skip(h2c, pos, end); | 2140 return ngx_http_v2_state_skip(h2c, pos, end); |
2138 } | 2141 } |
2139 | 2142 |