summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_frames.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-07-28 13:21:47 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-07-28 13:21:47 +0300
commitb7a5224bd8b2976c2978b0be2569a44de730c000 (patch)
tree100eabc19e54b3ec88a6d0f4aa9cc46533617511 /src/event/quic/ngx_event_quic_frames.c
parent00ca66455b986d63576e653c9892c6eea91bf312 (diff)
downloadnginx-b7a5224bd8b2976c2978b0be2569a44de730c000.tar.gz
nginx-b7a5224bd8b2976c2978b0be2569a44de730c000.tar.bz2
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.
Diffstat (limited to 'src/event/quic/ngx_event_quic_frames.c')
-rw-r--r--src/event/quic/ngx_event_quic_frames.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/event/quic/ngx_event_quic_frames.c b/src/event/quic/ngx_event_quic_frames.c
index 52b5c624e..438565858 100644
--- a/src/event/quic/ngx_event_quic_frames.c
+++ b/src/event/quic/ngx_event_quic_frames.c
@@ -197,14 +197,7 @@ ngx_quic_split_frame(ngx_connection_t *c, ngx_quic_frame_t *f, size_t len)
switch (f->type) {
case NGX_QUIC_FT_CRYPTO:
- case NGX_QUIC_FT_STREAM0:
- case NGX_QUIC_FT_STREAM1:
- case NGX_QUIC_FT_STREAM2:
- case NGX_QUIC_FT_STREAM3:
- case NGX_QUIC_FT_STREAM4:
- case NGX_QUIC_FT_STREAM5:
- case NGX_QUIC_FT_STREAM6:
- case NGX_QUIC_FT_STREAM7:
+ case NGX_QUIC_FT_STREAM:
break;
default:
@@ -663,15 +656,7 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
break;
- case NGX_QUIC_FT_STREAM0:
- case NGX_QUIC_FT_STREAM1:
- case NGX_QUIC_FT_STREAM2:
- case NGX_QUIC_FT_STREAM3:
- case NGX_QUIC_FT_STREAM4:
- case NGX_QUIC_FT_STREAM5:
- case NGX_QUIC_FT_STREAM6:
- case NGX_QUIC_FT_STREAM7:
-
+ case NGX_QUIC_FT_STREAM:
p = ngx_slprintf(p, last, "STREAM id:0x%xL", f->u.stream.stream_id);
if (f->u.stream.off) {