Mercurial > hg > nginx
diff src/http/v3/ngx_http_v3_request.c @ 8549: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 |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c Wed Sep 16 18:59:25 2020 +0100 +++ b/src/http/v3/ngx_http_v3_request.c Mon Aug 24 09:56:36 2020 +0300 @@ -418,7 +418,11 @@ continue; } - /* rc == NGX_DONE */ + if (rc == NGX_DONE) { + return NGX_DONE; + } + + /* rc == NGX_OK */ ctx->size = st->length; ctx->state = sw_start;