@@ -186,19 +186,19 @@ func NewHttpTestTunnel() *TestTunnel {
186186 DialContext : func (context.Context , string , string ) (net.Conn , error ) {
187187 return instance , nil
188188 },
189- // from http.DefaultTransport
190- MaxIdleConns : 100 ,
191- IdleConnTimeout : 90 * time .Second ,
192- TLSHandshakeTimeout : 10 * time .Second ,
193- ExpectContinueTimeout : 1 * time .Second ,
189+ //// from http.DefaultTransport
190+ // MaxIdleConns: 100,
191+ // IdleConnTimeout: 90 * time.Second,
192+ // TLSHandshakeTimeout: 10 * time.Second,
193+ // ExpectContinueTimeout: 1 * time.Second,
194194 // for our self-signed cert
195195 TLSClientConfig : tlsClientConfig .Clone (),
196196 // open http2
197197 ForceAttemptHTTP2 : true ,
198198 }
199199
200200 client := http.Client {
201- Timeout : 30 * time .Second ,
201+ Timeout : 60 * time .Second ,
202202 Transport : transport ,
203203 CheckRedirect : func (req * http.Request , via []* http.Request ) error {
204204 return http .ErrUseLastResponse
@@ -284,8 +284,8 @@ func NewHttpTestTunnel() *TestTunnel {
284284 return
285285 }
286286 }
287- ctx , cancel := context .WithTimeout (ctx , C .DefaultTLSTimeout )
288- defer cancel ()
287+ // ctx, cancel := context.WithTimeout(ctx, C.DefaultTLSTimeout)
288+ // defer cancel()
289289 if err := tlsConn .HandshakeContext (ctx ); err != nil {
290290 return
291291 }
0 commit comments