diff --git a/dns/doh.go b/dns/doh.go index 027afd58..50c72109 100644 --- a/dns/doh.go +++ b/dns/doh.go @@ -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 )