Skip to content

Commit

Permalink
disable SingleInflight to prevent mixing upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed Oct 19, 2022
1 parent 7dc09c1 commit de99848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sparse_dns/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func main() {

upstreamServers = strings.Split(*upstreamServersStr, ",") // parseUpstreamServers(*upstreamServersStr)
resolverRing = make(chan QueuedRequest, *maxClients)
udpClient = dns.Client{Net: "udp", DialTimeout: globalTimeout, ReadTimeout: globalTimeout, WriteTimeout: globalTimeout, SingleInflight: true}
tcpClient = dns.Client{Net: "tcp", DialTimeout: globalTimeout, ReadTimeout: globalTimeout, WriteTimeout: globalTimeout, SingleInflight: true}
udpClient = dns.Client{Net: "udp", DialTimeout: globalTimeout, ReadTimeout: globalTimeout, WriteTimeout: globalTimeout, SingleInflight: false}
tcpClient = dns.Client{Net: "tcp", DialTimeout: globalTimeout, ReadTimeout: globalTimeout, WriteTimeout: globalTimeout, SingleInflight: false}

for i := uint(0); i < *maxClients; i++ {
go func() {
Expand Down

0 comments on commit de99848

Please sign in to comment.