feat(forward): add max connect attempts knob (#7722)

This commit is contained in:
Ville Vesilehto
2025-12-02 04:06:52 +02:00
committed by GitHub
parent 5cb2c5dbf5
commit c2894d47d6
5 changed files with 126 additions and 39 deletions

View File

@@ -45,6 +45,7 @@ forward FROM TO... {
prefer_udp
expire DURATION
max_fails INTEGER
max_connect_attempts INTEGER
tls CERT KEY CA
tls_servername NAME
policy random|round_robin|sequential
@@ -66,6 +67,9 @@ forward FROM TO... {
* `max_fails` is the number of subsequent failed health checks that are needed before considering
an upstream to be down. If 0, the upstream will never be marked as down (nor health checked).
Default is 2.
* `max_connect_attempts` caps the total number of upstream connect attempts
performed for a single incoming DNS request. Default value of 0 means no per-request
cap.
* `expire` **DURATION**, expire (cached) connections after this time, the default is 10s.
* `tls` **CERT** **KEY** **CA** define the TLS properties for TLS connection. From 0 to 3 arguments can be
provided with the meaning as described below