@@ -250,9 +250,10 @@ optimistic_stale_max_age = 86400
250250# response is likely ready. Default: 30.
251251optimistic_stale_response_ttl = 30
252252
253- # Connection pooling for upstream TCP/TLS connections — when enabled,
254- # phantomd reuses established connections instead of creating a new one
255- # for every query. This reduces handshake overhead and improves performance.
253+ # Connection pooling for upstream connections — phantomd reuses existing
254+ # connections instead of creating a new one for every query. This reduces
255+ # handshake overhead and improves performance for TCP, TLS, HTTP/2, HTTP/3,
256+ # and QUIC (DoQ) upstreams.
256257# Maximum number of idle connections to keep per upstream (host/port).
257258# Default: 5
258259pool_max_size = 5
@@ -261,6 +262,19 @@ pool_max_size = 5
261262# Default: 60.0
262263pool_idle_timeout = 60.0
263264
265+ # DoH version to use when talking to upstream servers over HTTPS.
266+ # Supported values:
267+ # auto — probe HTTP/3, then HTTP/2, then HTTP/1.1 to find the best
268+ # 1.1 — use HTTP/1.1 (always works, but slower)
269+ # 2 — use HTTP/2 (requires httpx with H2 support)
270+ # 3 — use HTTP/3 / QUIC (requires aioquic, experimental)
271+ # Default: auto
272+ doh_version = auto
273+
274+ # When doh_version is set to auto, phantomd probes the upstream once
275+ # and caches the detected version for this many seconds. Default: 3600 (1h).
276+ doh_auto_cache_ttl = 3600
277+
264278######################################################################
265279# End of configuration file
266280######################################################################
0 commit comments