Mercurial > hg > nginx
diff src/event/ngx_event_quic.c @ 8236:d3b26c3bea22 quic
Added parsing of STREAMS BLOCKED frames.
While there, added hex prefix for debug to avoid frame type confusion.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 19 Mar 2020 11:15:43 +0300 |
parents | 552d6868091b |
children | ff540f13d95d |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -722,7 +722,7 @@ ngx_quic_payload_handler(ngx_connection_ len = ngx_quic_parse_frame(p, end, &frame); if (len < 0) { ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, - "failed to parse frame type %xi", frame.type); + "failed to parse frame type 0x%xi", frame.type); return NGX_ERROR; } @@ -840,6 +840,15 @@ ngx_quic_payload_handler(ngx_connection_ frame.u.stop_sending.error_code); break; + case NGX_QUIC_FT_STREAMS_BLOCKED: + case NGX_QUIC_FT_STREAMS_BLOCKED2: + ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, + "STREAMS BLOCKED frame" + " { limit %i bidi: %d }", + frame.u.streams_blocked.limit, + frame.u.streams_blocked.bidi); + break; + default: ngx_log_error(NGX_LOG_INFO, c->log, 0, "unsupported frame type 0x%xd in packet", frame.type);