Mercurial > hg > nginx
annotate src/os/unix/ngx_sunpro_sparc64.il @ 8795:278ab0ed24f2 quic
HTTP/3: generate more H3_FRAME_UNEXPECTED.
As per quic-http-34, these are the cases when this error should be generated:
If an endpoint receives a second SETTINGS frame
on the control stream, the endpoint MUST respond with a connection
error of type H3_FRAME_UNEXPECTED
SETTINGS frames MUST NOT be sent on any stream other than the control
stream. If an endpoint receives a SETTINGS frame on a different
stream, the endpoint MUST respond with a connection error of type
H3_FRAME_UNEXPECTED.
A client MUST NOT send a PUSH_PROMISE frame. A server MUST treat the
receipt of a PUSH_PROMISE frame as a connection error of type
H3_FRAME_UNEXPECTED; see Section 8.
The MAX_PUSH_ID frame is always sent on the control stream. Receipt
of a MAX_PUSH_ID frame on any other stream MUST be treated as a
connection error of type H3_FRAME_UNEXPECTED.
Receipt of an invalid sequence of frames MUST be treated as a
connection error of type H3_FRAME_UNEXPECTED; see Section 8. In
particular, a DATA frame before any HEADERS frame, or a HEADERS or
DATA frame after the trailing HEADERS frame, is considered invalid.
A CANCEL_PUSH frame is sent on the control stream. Receiving a
CANCEL_PUSH frame on a stream other than the control stream MUST be
treated as a connection error of type H3_FRAME_UNEXPECTED.
The GOAWAY frame is always sent on the control stream.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 11 Jun 2021 12:11:08 +0300 |
parents | d620f497c50f |
children |
rev | line source |
---|---|
561 | 1 / |
2 / Copyright (C) Igor Sysoev | |
4412 | 3 / Copyright (C) Nginx, Inc. |
561 | 4 / |
5 | |
6 | |
7 / "casa [%o2] 0x80, %o1, %o0" and | |
8 / "casxa [%o2] 0x80, %o1, %o0" do the following: | |
577 | 9 / |
561 | 10 / if ([%o2] == %o1) { |
11 / swap(%o0, [%o2]); | |
12 / } else { | |
13 / %o0 = [%o2]; | |
14 / } | |
15 | |
16 | |
17 / ngx_atomic_uint_t ngx_casa(ngx_atomic_uint_t set, ngx_atomic_uint_t old, | |
18 / ngx_atomic_t *lock); | |
19 / | |
20 / the arguments are passed in the %o0, %o1, %o2 | |
21 / the result is returned in the %o0 | |
22 | |
23 .inline ngx_casa,0 | |
24 casa [%o2] 0x80, %o1, %o0 | |
25 .end | |
26 | |
27 | |
28 / ngx_atomic_uint_t ngx_casxa(ngx_atomic_uint_t set, ngx_atomic_uint_t old, | |
29 / ngx_atomic_t *lock); | |
30 / | |
31 / the arguments are passed in the %o0, %o1, %o2 | |
32 / the result is returned in the %o0 | |
33 | |
34 .inline ngx_casxa,0 | |
35 casxa [%o2] 0x80, %o1, %o0 | |
36 .end |