Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_ack.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 | 4715f3e669f1 |
children | f3331deed357 |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ack.c Fri Jul 23 11:25:16 2021 +0300 +++ b/src/event/quic/ngx_event_quic_ack.c Wed Jul 28 13:21:47 2021 +0300 @@ -239,14 +239,7 @@ ngx_quic_drop_ack_ranges(c, ctx, f->u.ack.largest); 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: ngx_quic_handle_stream_ack(c, f); break; } @@ -599,14 +592,7 @@ ngx_quic_queue_frame(qc, f); 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: qs = ngx_quic_find_stream(&qc->streams.tree, f->u.stream.stream_id); if (qs && qs->connection->write->error) {