File tree 1 file changed +12
-0
lines changed
components/ws-manager/pkg/manager
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 8
8
"context"
9
9
"crypto/tls"
10
10
"io/ioutil"
11
+ "net"
11
12
"net/http"
12
13
"net/url"
13
14
"time"
@@ -72,6 +73,17 @@ func (p *WorkspaceReadyProbe) Run(ctx context.Context) WorkspaceProbeResult {
72
73
Timeout : p .Timeout ,
73
74
Transport : & http.Transport {
74
75
TLSClientConfig : & tls.Config {InsecureSkipVerify : true },
76
+ DialContext : (& net.Dialer {
77
+ Timeout : 30 * time .Second ,
78
+ KeepAlive : 30 * time .Second ,
79
+ DualStack : false ,
80
+ }).DialContext ,
81
+ MaxIdleConns : 0 ,
82
+ MaxIdleConnsPerHost : 32 ,
83
+ IdleConnTimeout : 30 * time .Second ,
84
+ TLSHandshakeTimeout : 10 * time .Second ,
85
+ ExpectContinueTimeout : 5 * time .Second ,
86
+ DisableKeepAlives : true ,
75
87
},
76
88
CheckRedirect : func (req * http.Request , via []* http.Request ) error {
77
89
return http .ErrUseLastResponse
You can’t perform that action at this time.
0 commit comments