]> git.kaiwu.me - nginx.git/commit
HTTP/3: reordered H3_MISSING_SETTINGS and H3_FRAME_UNEXPECTED.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 11 Jun 2021 07:56:51 +0000 (10:56 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 11 Jun 2021 07:56:51 +0000 (10:56 +0300)
commit9cf6426f6a517919863d0618e6c514f3f180cb8f
tree1806158746a79edbb5ea8db61f7649578785672c
parentbf7b32e1b60e48db7cf2a938dc4a57dfb13ce0a6
HTTP/3: reordered H3_MISSING_SETTINGS and H3_FRAME_UNEXPECTED.

The quic-http-34 is ambiguous as to what error should be generated for the
first frame in control stream:

   Each side MUST initiate a single control stream at the beginning of
   the connection and send its SETTINGS frame as the first frame on this
   stream.  If the first frame of the control stream is any other frame
   type, this MUST be treated as a connection error of type
   H3_MISSING_SETTINGS.

   If a DATA frame is received on a control stream, the recipient MUST
   respond with a connection error of type H3_FRAME_UNEXPECTED.

   If a HEADERS frame is received on a control stream, the recipient MUST
   respond with a connection error of type H3_FRAME_UNEXPECTED.

Previously, H3_FRAME_UNEXPECTED had priority, but now H3_MISSING_SETTINGS has.
The arguments in the spec sound more compelling for H3_MISSING_SETTINGS.
src/http/v3/ngx_http_v3_parse.c