mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-24 20:28:11 +08:00
chore(dns): increase MaxConnsPerHost (#1834)
This commit is contained in:
parent
ccc3f84da2
commit
9074b78e36
@ -37,13 +37,14 @@ const (
|
|||||||
transportDefaultIdleConnTimeout = 5 * time.Minute
|
transportDefaultIdleConnTimeout = 5 * time.Minute
|
||||||
|
|
||||||
// dohMaxConnsPerHost controls the maximum number of connections for
|
// dohMaxConnsPerHost controls the maximum number of connections for
|
||||||
// each host.
|
// each host. Note, that setting it to 1 may cause issues with Go's http
|
||||||
dohMaxConnsPerHost = 1
|
// implementation, see https://github.com/AdguardTeam/dnsproxy/issues/278.
|
||||||
|
dohMaxConnsPerHost = 2
|
||||||
dialTimeout = 10 * time.Second
|
dialTimeout = 10 * time.Second
|
||||||
|
|
||||||
// dohMaxIdleConns controls the maximum number of connections being idle
|
// dohMaxIdleConns controls the maximum number of connections being idle
|
||||||
// at the same time.
|
// at the same time.
|
||||||
dohMaxIdleConns = 1
|
dohMaxIdleConns = 2
|
||||||
maxElapsedTime = time.Second * 30
|
maxElapsedTime = time.Second * 30
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user