Mercurial > hg > nginx
annotate src/os/unix/ngx_sunpro_amd64.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 | 2cd019520210 |
children |
rev | line source |
---|---|
561 | 1 / |
2 / Copyright (C) Igor Sysoev | |
4412 | 3 / Copyright (C) Nginx, Inc. |
561 | 4 / |
5 | |
6 / ngx_atomic_uint_t ngx_atomic_cmp_set(ngx_atomic_t *lock, | |
7 / ngx_atomic_uint_t old, ngx_atomic_uint_t set); | |
8 / | |
9 / the arguments are passed in %rdi, %rsi, %rdx | |
10 / the result is returned in the %rax | |
11 | |
12 .inline ngx_atomic_cmp_set,0 | |
13 movq %rsi, %rax | |
14 lock | |
15 cmpxchgq %rdx, (%rdi) | |
16 setz %al | |
17 movzbq %al, %rax | |
18 .end | |
19 | |
20 | |
21 / ngx_atomic_int_t ngx_atomic_fetch_add(ngx_atomic_t *value, | |
22 / ngx_atomic_int_t add); | |
23 / | |
24 / the arguments are passed in %rdi, %rsi | |
25 / the result is returned in the %rax | |
26 | |
27 .inline ngx_atomic_fetch_add,0 | |
28 movq %rsi, %rax | |
29 lock | |
30 xaddq %rax, (%rdi) | |
31 .end | |
1309 | 32 |
33 | |
34 / ngx_cpu_pause() | |
3479
bfd1912e55a9
use "rep; nop" instead of "pause" on Solaris/amd64
Igor Sysoev <igor@sysoev.ru>
parents:
1309
diff
changeset
|
35 / |
bfd1912e55a9
use "rep; nop" instead of "pause" on Solaris/amd64
Igor Sysoev <igor@sysoev.ru>
parents:
1309
diff
changeset
|
36 / the "rep; nop" is used instead of "pause" to avoid the "[ PAUSE ]" hardware |
bfd1912e55a9
use "rep; nop" instead of "pause" on Solaris/amd64
Igor Sysoev <igor@sysoev.ru>
parents:
1309
diff
changeset
|
37 / capability added by linker because Solaris/amd64 does not know about it: |
bfd1912e55a9
use "rep; nop" instead of "pause" on Solaris/amd64
Igor Sysoev <igor@sysoev.ru>
parents:
1309
diff
changeset
|
38 / |
bfd1912e55a9
use "rep; nop" instead of "pause" on Solaris/amd64
Igor Sysoev <igor@sysoev.ru>
parents:
1309
diff
changeset
|
39 / ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ] |
1309 | 40 |
6474 | 41 .inline ngx_cpu_pause,0 |
42 rep; nop | |
43 .end |