English
The quic block
The protocols over QUIC — hysteria, hysteria2, tuic — take a shared quic block in the protocol block, of the same kind for inbound and outbound. The same fields directly in the protocol block are an error (`idle_timeout` is `quic.idle_timeout`). An empty or zero field keeps the protocol's default.
| Field | Type | Meaning |
|---|---|---|
idle_timeout | duration | Close the connection after this long without traffic |
keep_alive_period | duration | How often to send keep-alive |
stream_receive_window | size (8 MB, 16777216) | The receive window of one stream |
connection_receive_window | size | The receive window of the whole connection |
max_concurrent_streams | number | How many streams the peer may open |
initial_packet_size | number | The initial packet size (no less than 1200) |
disable_path_mtu_discovery | bool | Do not discover the path MTU |
The protocols' defaults:
idle_timeout | keep_alive_period | Stream / connection window | Server streams | |
|---|---|---|---|---|
hysteria, hysteria2 | 30s | 10s | 8 MiB / 20 MiB | 1024 |
tuic | quinn default | none, heartbeat (10s) instead | 6 MiB / 64 MiB | 1024 |
TLS is mandatory for QUIC and is always 1.3. REALITY, uTLS fingerprints, ClientHello fragmentation and kTLS do not work over QUIC: loading ends with an error.
Example
yaml
outbounds:
hy2:
hysteria2:
server: hy.example.com:443
password: secret
tls:
sni: hy.example.com
quic:
idle_timeout: 60s
keep_alive_period: 15s
max_concurrent_streams: 256
route:
final:
outbound: hy2