Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for configureTransport (0.22 sec)

  1. platforms/software/version-control/src/main/java/org/gradle/vcs/git/internal/GitVersionControlSystem.java

                }
            }
            return null;
        }
    
        private Collection<Ref> getRemoteRefs(GitVersionControlSpec gitSpec, boolean tags, boolean heads) {
            try {
                return configureTransport(Git.lsRemoteRepository()).setRemote(normalizeUri(gitSpec.getUrl())).setTags(tags).setHeads(heads).call();
            } catch (URISyntaxException | GitAPIException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 14:54:52 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/net/http/doc.go

    HTTP/2 support for simple configurations. To enable HTTP/2 for more
    complex configurations, to use lower-level HTTP/2 features, or to use
    a newer version of Go's http2 package, import "golang.org/x/net/http2"
    directly and use its ConfigureTransport and/or ConfigureServer
    functions. Manually configuring HTTP/2 via the golang.org/x/net/http2
    package takes precedence over the net/http package's built-in HTTP/2
    support.
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go

    				MaxIdleConnsPerHost: -1,
    				DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
    					return dialFn(network, addr, tlsConfig)
    				},
    			}
    			if err := http2.ConfigureTransport(tr); err != nil {
    				t.Fatalf("failed to configure http transport, err: %v", err)
    			}
    
    			client := &http.Client{
    				Transport: tr,
    			}
    
    			watchChs := make([]<-chan watchResponse, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:54 UTC 2021
    - 13.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go

    				if nextProto == http2.NextProtoTLS {
    					// Disable connection pooling to avoid additional connections
    					// that cause the test to flake
    					tr.MaxIdleConnsPerHost = -1
    					if err := http2.ConfigureTransport(tr); err != nil {
    						t.Fatal(err)
    					}
    				}
    
    				client := &http.Client{
    					Transport: tr,
    				}
    
    				for i := 0; i < reqs; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    		NextProtos: []string{http2.NextProtoTLS},
    	}
    
    	tr := &http.Transport{
    		TLSClientConfig:   tlsConfig,
    		DisableKeepAlives: useNewConnection,
    	}
    	if err := http2.ConfigureTransport(tr); err != nil {
    		log.Fatalf("Failed to configure HTTP2 transport: %v", err)
    	}
    	return &http.Client{
    		Timeout:   0,
    		Transport: tr,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    // and how the Transport is configured. The [DefaultTransport] supports HTTP/2.
    // To explicitly enable HTTP/2 on a transport, use golang.org/x/net/http2
    // and call ConfigureTransport. See the package docs for more about HTTP/2.
    //
    // Responses with status codes in the 1xx range are either handled
    // automatically (100 expect-continue) or ignored. The one
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. pkg/hbone/server.go

    	"istio.io/istio/pkg/h2c"
    )
    
    func NewServer() *http.Server {
    	// Need to set this to allow timeout on the read header
    	h1 := &http.Transport{
    		ExpectContinueTimeout: 3 * time.Second,
    	}
    	h2, _ := http2.ConfigureTransports(h1)
    	h2.ReadIdleTimeout = 10 * time.Minute // TODO: much larger to support long-lived connections
    	h2.AllowHTTP = true
    	h2Server := &http2.Server{}
    	handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 10 02:05:07 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

    	go lb.serve(stopCh)
    
    	c := ts.Client()
    	transport, ok := ts.Client().Transport.(*http.Transport)
    	if !ok {
    		t.Fatalf("failed to assert *http.Transport")
    	}
    	t2, err := http2.ConfigureTransports(transport)
    	if err != nil {
    		t.Fatalf("failed to configure *http.Transport: %+v", err)
    	}
    	t2.ReadIdleTimeout = time.Second
    	t2.PingTimeout = time.Second
    	// Create an HTTP2 connection to reuse later
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. internal/http/transports.go

    	// https://github.com/golang/go/issues/43989
    	// https://github.com/golang/go/issues/33425
    	// https://github.com/golang/go/issues/29246
    	// if tlsConfig != nil {
    	// 	trhttp2, _ := http2.ConfigureTransports(tr)
    	// 	if trhttp2 != nil {
    	// 		// ReadIdleTimeout is the timeout after which a health check using ping
    	// 		// frame will be carried out if no frame is received on the
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/net/http/h2_bundle.go

    	return t.PingTimeout
    
    }
    
    // ConfigureTransport configures a net/http HTTP/1 Transport to use HTTP/2.
    // It returns an error if t1 has already been HTTP/2-enabled.
    //
    // Use ConfigureTransports instead to configure the HTTP/2 Transport.
    func http2ConfigureTransport(t1 *Transport) error {
    	_, err := http2ConfigureTransports(t1)
    	return err
    }
    
    // ConfigureTransports configures a net/http HTTP/1 Transport to use HTTP/2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top