Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_frames.c @ 8820:4009f120cad4 quic
QUIC: eliminated stream type from ngx_quic_stream_frame_t.
The information about the type is contained in off/len/fin bits.
Also, where possible, only the first stream type (0x08) is used for simplicity.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 28 Jul 2021 13:21:47 +0300 |
parents | 6c213bec71c2 |
children | 404de224517e |
comparison
equal
deleted
inserted
replaced
8819:d0ef43a53a51 | 8820:4009f120cad4 |
---|---|
195 ngx_quic_frame_t *nf; | 195 ngx_quic_frame_t *nf; |
196 ngx_quic_ordered_frame_t *of, *onf; | 196 ngx_quic_ordered_frame_t *of, *onf; |
197 | 197 |
198 switch (f->type) { | 198 switch (f->type) { |
199 case NGX_QUIC_FT_CRYPTO: | 199 case NGX_QUIC_FT_CRYPTO: |
200 case NGX_QUIC_FT_STREAM0: | 200 case NGX_QUIC_FT_STREAM: |
201 case NGX_QUIC_FT_STREAM1: | |
202 case NGX_QUIC_FT_STREAM2: | |
203 case NGX_QUIC_FT_STREAM3: | |
204 case NGX_QUIC_FT_STREAM4: | |
205 case NGX_QUIC_FT_STREAM5: | |
206 case NGX_QUIC_FT_STREAM6: | |
207 case NGX_QUIC_FT_STREAM7: | |
208 break; | 201 break; |
209 | 202 |
210 default: | 203 default: |
211 return NGX_DECLINED; | 204 return NGX_DECLINED; |
212 } | 205 } |
661 p = ngx_slprintf(p, last, " ft:%ui", f->u.close.frame_type); | 654 p = ngx_slprintf(p, last, " ft:%ui", f->u.close.frame_type); |
662 } | 655 } |
663 | 656 |
664 break; | 657 break; |
665 | 658 |
666 case NGX_QUIC_FT_STREAM0: | 659 case NGX_QUIC_FT_STREAM: |
667 case NGX_QUIC_FT_STREAM1: | |
668 case NGX_QUIC_FT_STREAM2: | |
669 case NGX_QUIC_FT_STREAM3: | |
670 case NGX_QUIC_FT_STREAM4: | |
671 case NGX_QUIC_FT_STREAM5: | |
672 case NGX_QUIC_FT_STREAM6: | |
673 case NGX_QUIC_FT_STREAM7: | |
674 | |
675 p = ngx_slprintf(p, last, "STREAM id:0x%xL", f->u.stream.stream_id); | 660 p = ngx_slprintf(p, last, "STREAM id:0x%xL", f->u.stream.stream_id); |
676 | 661 |
677 if (f->u.stream.off) { | 662 if (f->u.stream.off) { |
678 p = ngx_slprintf(p, last, " off:%uL", f->u.stream.offset); | 663 p = ngx_slprintf(p, last, " off:%uL", f->u.stream.offset); |
679 } | 664 } |