comparison src/event/ngx_event_quic.c @ 7702: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
comparison
equal deleted inserted replaced
7701:552d6868091b 7702:d3b26c3bea22
720 while (p < end) { 720 while (p < end) {
721 721
722 len = ngx_quic_parse_frame(p, end, &frame); 722 len = ngx_quic_parse_frame(p, end, &frame);
723 if (len < 0) { 723 if (len < 0) {
724 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 724 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
725 "failed to parse frame type %xi", frame.type); 725 "failed to parse frame type 0x%xi", frame.type);
726 return NGX_ERROR; 726 return NGX_ERROR;
727 } 727 }
728 728
729 p += len; 729 p += len;
730 730
838 " { id 0x%xi error_code 0x%xi}", 838 " { id 0x%xi error_code 0x%xi}",
839 frame.u.stop_sending.id, 839 frame.u.stop_sending.id,
840 frame.u.stop_sending.error_code); 840 frame.u.stop_sending.error_code);
841 break; 841 break;
842 842
843 case NGX_QUIC_FT_STREAMS_BLOCKED:
844 case NGX_QUIC_FT_STREAMS_BLOCKED2:
845 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
846 "STREAMS BLOCKED frame"
847 " { limit %i bidi: %d }",
848 frame.u.streams_blocked.limit,
849 frame.u.streams_blocked.bidi);
850 break;
851
843 default: 852 default:
844 ngx_log_error(NGX_LOG_INFO, c->log, 0, 853 ngx_log_error(NGX_LOG_INFO, c->log, 0,
845 "unsupported frame type 0x%xd in packet", frame.type); 854 "unsupported frame type 0x%xd in packet", frame.type);
846 return NGX_ERROR; 855 return NGX_ERROR;
847 } 856 }