Pull request 2230: home: incr timeout
Updates #7041. Squashed commit of the following: commit 536382cf55bd158f179aaeabb1a16ed86d437257 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Jun 4 20:56:56 2024 +0300 home: incr timeout
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
)
|
||||
|
||||
// httpClient returns a new HTTP client that uses the AdGuard Home's own DNS
|
||||
@@ -23,7 +22,7 @@ func httpClient() (c *http.Client) {
|
||||
|
||||
return &http.Client{
|
||||
// TODO(a.garipov): Make configurable.
|
||||
Timeout: time.Minute * 5,
|
||||
Timeout: writeTimeout,
|
||||
Transport: &http.Transport{
|
||||
DialContext: dialContext,
|
||||
Proxy: httpProxy,
|
||||
|
||||
Reference in New Issue
Block a user