mirror of
https://github.com/safing/portmaster
synced 2025-09-11 23:44:34 +00:00
Set DNS http maximu idle connection to 3 minutes
This commit is contained in:
parent
652e27d3ce
commit
59e2c56e0f
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
@ -45,6 +46,7 @@ func NewHTTPSResolver(resolver *Resolver) *HTTPSResolver {
|
|||
ServerName: resolver.Info.Domain,
|
||||
// TODO: use portbase rng
|
||||
},
|
||||
IdleConnTimeout: 3 * time.Minute,
|
||||
}
|
||||
|
||||
client := &http.Client{Transport: tr}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue