Browse Source

Revert "Test: fix http2 dial timeout (#570)" (#778)

* Revert "Test: fix http2 dial timeout (#570)"

This reverts commit 405a051c50e032abc092d01f3a50adeeb585401d.

* Feat: lower the payload size

* Remove state.NegotiatedProtocolIsMutual

It has been deprecated since Go 1.16 because it shouldn't be used: this value is always true.
Loyalsoldier 4 years ago
parent
commit
4028a09e70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      transport/internet/http/dialer.go

+ 2 - 2
transport/internet/http/dialer.go

@@ -24,7 +24,7 @@ var (
 	globalDialerAccess sync.Mutex
 	globalDialerAccess sync.Mutex
 )
 )
 
 
-func getHTTPClient(ctx context.Context, dest net.Destination, tlsSettings *tls.Config) *http.Client {
+func getHTTPClient(_ context.Context, dest net.Destination, tlsSettings *tls.Config) *http.Client {
 	globalDialerAccess.Lock()
 	globalDialerAccess.Lock()
 	defer globalDialerAccess.Unlock()
 	defer globalDialerAccess.Unlock()
 
 
@@ -51,7 +51,7 @@ func getHTTPClient(ctx context.Context, dest net.Destination, tlsSettings *tls.C
 			}
 			}
 			address := net.ParseAddress(rawHost)
 			address := net.ParseAddress(rawHost)
 
 
-			pconn, err := internet.DialSystem(ctx, net.TCPDestination(address, port), nil)
+			pconn, err := internet.DialSystem(context.Background(), net.TCPDestination(address, port), nil)
 			if err != nil {
 			if err != nil {
 				return nil, err
 				return nil, err
 			}
 			}