Skip to content

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.

FieldTypeMeaning
idle_timeoutdurationClose the connection after this long without traffic
keep_alive_perioddurationHow often to send keep-alive
stream_receive_windowsize (8 MB, 16777216)The receive window of one stream
connection_receive_windowsizeThe receive window of the whole connection
max_concurrent_streamsnumberHow many streams the peer may open
initial_packet_sizenumberThe initial packet size (no less than 1200)
disable_path_mtu_discoveryboolDo not discover the path MTU

The protocols' defaults:

idle_timeoutkeep_alive_periodStream / connection windowServer streams
hysteria, hysteria230s10s8 MiB / 20 MiB1024
tuicquinn defaultnone, heartbeat (10s) instead6 MiB / 64 MiB1024

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

GPL-3.0-or-later