Skip to content

Commit 61db575

Browse files
authored
Merge pull request #32 from k1LoW/set-dial-timeout
Unset DialContext.Timeout
2 parents c853d82 + 2ff52c6 commit 61db575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resolver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type Option func(*Resolver) error
7272
var httpClient = &http.Client{
7373
Transport: &http.Transport{
7474
DialContext: (&net.Dialer{
75-
Timeout: time.Second,
75+
KeepAlive: 5 * time.Minute,
7676
}).DialContext,
7777
TLSHandshakeTimeout: time.Second,
7878
IdleConnTimeout: time.Second,

0 commit comments

Comments
 (0)