Skip to content

Commit

Permalink
Raise the dialer timeout as it is not appropriate for certain tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Mar 12, 2024
1 parent 724338f commit d0d70f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netx/local_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func MakeLocalTransport(idle int, max int, opts *http.Transport) *http.Transport

var LocalTransport = MakeLocalTransport(16384, 0, &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
ResponseHeaderTimeout: 10 * time.Second,
ResponseHeaderTimeout: 1 * time.Minute,
})
var LocalH2Transport = &http2.Transport{
DisableCompression: true,
Expand Down

0 comments on commit d0d70f6

Please sign in to comment.