We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91b1ae commit 5ce15ecCopy full SHA for 5ce15ec
1 file changed
github/client.go
@@ -64,17 +64,17 @@ func NewClient(config *Config) (*Client, error) {
64
}
65
66
// A sensible request timeout.
67
- reqTimeout := time.Millisecond * 5000
+ reqTimeout := time.Millisecond * 10000
68
69
// Initialise a new transport instead of using Go's default. This transport
70
// has explicit timeouts and sensible defaults for max connections per host
71
// (i.e. their zero values—unlimited—since the plugin typically only deals
72
// with one host).
73
transport := &http.Transport{
74
DialContext: (&net.Dialer{
75
- Timeout: reqTimeout / 2,
+ Timeout: reqTimeout / 4,
76
}).DialContext,
77
- TLSHandshakeTimeout: reqTimeout / 2,
+ TLSHandshakeTimeout: reqTimeout / 4,
78
Proxy: http.ProxyFromEnvironment,
79
80
0 commit comments