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:
Ainar Garipov
2024-06-04 21:06:11 +03:00
parent b69890b8fe
commit 4392255d7e
3 changed files with 11 additions and 3 deletions

View File

@@ -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,