Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_streams.c @ 8797:4715f3e669f1 quic
QUIC: updated specification references.
This includes updating citations and further clarification.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 16 Jun 2021 11:55:12 +0300 |
parents | af33d1ef1c3c |
children | 4009f120cad4 |
comparison
equal
deleted
inserted
replaced
8796:1fec68e322d0 | 8797:4715f3e669f1 |
---|---|
294 min_id = (qc->streams.client_streams_bidi << 2); | 294 min_id = (qc->streams.client_streams_bidi << 2); |
295 qc->streams.client_streams_bidi = (id >> 2) + 1; | 295 qc->streams.client_streams_bidi = (id >> 2) + 1; |
296 } | 296 } |
297 | 297 |
298 /* | 298 /* |
299 * 2.1. Stream Types and Identifiers | 299 * RFC 9000, 2.1. Stream Types and Identifiers |
300 * | 300 * |
301 * Within each type, streams are created with numerically increasing | 301 * successive streams of each type are created with numerically increasing |
302 * stream IDs. A stream ID that is used out of order results in all | 302 * stream IDs. A stream ID that is used out of order results in all |
303 * streams of that type with lower-numbered stream IDs also being | 303 * streams of that type with lower-numbered stream IDs also being opened. |
304 * opened. | |
305 */ | 304 */ |
306 | 305 |
307 for ( /* void */ ; min_id < id; min_id += 0x04) { | 306 for ( /* void */ ; min_id < id; min_id += 0x04) { |
308 | 307 |
309 qs = ngx_quic_create_stream(c, min_id); | 308 qs = ngx_quic_create_stream(c, min_id); |