mirror of
https://github.com/safing/portmaster
synced 2025-09-13 16:29:42 +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"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
@ -45,6 +46,7 @@ func NewHTTPSResolver(resolver *Resolver) *HTTPSResolver {
|
||||||
ServerName: resolver.Info.Domain,
|
ServerName: resolver.Info.Domain,
|
||||||
// TODO: use portbase rng
|
// TODO: use portbase rng
|
||||||
},
|
},
|
||||||
|
IdleConnTimeout: 3 * time.Minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
client := &http.Client{Transport: tr}
|
client := &http.Client{Transport: tr}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue