Skip to content

Commit

Permalink
Pull request: increase MaxConnsPerHost, fix #278
Browse files Browse the repository at this point in the history
Merge in DNS/dnsproxy from fix-278 to master

Squashed commit of the following:

commit 19e0286
Author: Andrey Meshkov <am@adguard.com>
Date:   Sun Dec 4 20:17:01 2022 +0300

    increase MaxConnsPerHost, fix #278
  • Loading branch information
ameshkov committed Dec 7, 2022
1 parent 6d9de39 commit b14cd4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions upstream/upstream_doh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ 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

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

// dnsOverHTTPS is a struct that implements the Upstream interface for the
Expand Down

0 comments on commit b14cd4b

Please sign in to comment.