Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3_request.c @ 8087:d70a38acaea0 quic
HTTP/3: skip unknown frames on request stream.
As per HTTP/3 draft 29, section 4.1:
Frames of unknown types (Section 9), including reserved frames
(Section 7.2.8) MAY be sent on a request or push stream before,
after, or interleaved with other frames described in this section.
Also, trailers frame is now used as an indication of the request body end.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 24 Aug 2020 09:56:36 +0300 |
parents | 9ffef6054abf |
children | 279ad36f2f4b |
comparison
equal
deleted
inserted
replaced
8086:9ffef6054abf | 8087:d70a38acaea0 |
---|---|
416 if (rc == NGX_AGAIN) { | 416 if (rc == NGX_AGAIN) { |
417 ctx->state = sw_skip; | 417 ctx->state = sw_skip; |
418 continue; | 418 continue; |
419 } | 419 } |
420 | 420 |
421 /* rc == NGX_DONE */ | 421 if (rc == NGX_DONE) { |
422 return NGX_DONE; | |
423 } | |
424 | |
425 /* rc == NGX_OK */ | |
422 | 426 |
423 ctx->size = st->length; | 427 ctx->size = st->length; |
424 ctx->state = sw_start; | 428 ctx->state = sw_start; |
425 } | 429 } |
426 | 430 |