Skip to content

Commit

Permalink
chore(dns): increase MaxConnsPerHost (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
5aaee9 authored Feb 10, 2025
1 parent ccc3f84 commit 9074b78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dns/doh.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ const (
transportDefaultIdleConnTimeout = 5 * time.Minute

// dohMaxConnsPerHost controls the maximum number of connections for
// each host.
dohMaxConnsPerHost = 1
// each host. Note, that setting it to 1 may cause issues with Go's http
// implementation, see https://github.com/AdguardTeam/dnsproxy/issues/278.
dohMaxConnsPerHost = 2
dialTimeout = 10 * time.Second

// dohMaxIdleConns controls the maximum number of connections being idle
// at the same time.
dohMaxIdleConns = 1
dohMaxIdleConns = 2
maxElapsedTime = time.Second * 30
)

Expand Down

0 comments on commit 9074b78

Please sign in to comment.