Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pingPeriod (0.23 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go

    }
    
    // NewClientConnectionWithPings creates a new SPDY client connection.
    //
    // If pingPeriod is non-zero, a background goroutine will send periodic Ping
    // frames to the server. Use this to keep idle connections through certain load
    // balancers alive longer.
    func NewClientConnectionWithPings(conn net.Conn, pingPeriod time.Duration) (httpstream.Connection, error) {
    	spdyConn, err := spdystream.NewConnection(conn, false)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 15:04:07 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade.go

    // package.
    //
    // If pingPeriod is non-zero, for each incoming connection a background
    // goroutine will send periodic Ping frames to the server. Use this to keep
    // idle connections through certain load balancers alive longer.
    func NewResponseUpgraderWithPings(pingPeriod time.Duration) httpstream.ResponseUpgrader {
    	return responseUpgrader{pingPeriod: pingPeriod}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:02:09 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go

    	}
    
    	// Wait for at least 2 pings to get sent each way before closing the
    	// connection.
    	elapsed := time.Since(start)
    	if elapsed < 3*pingPeriod {
    		time.Sleep(3*pingPeriod - elapsed)
    	}
    	clSPDYConn.Close()
    
    	select {
    	case err, ok := <-srvErr:
    		if ok && err != nil {
    			t.Error(err)
    		}
    	case <-timeout:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 11:58:57 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	// Used primarily for mocking the proxy discovery in tests.
    	proxier func(req *http.Request) (*url.URL, error)
    
    	// pingPeriod is a period for sending Ping frames over established
    	// connections.
    	pingPeriod time.Duration
    
    	// upgradeTransport is an optional substitute for dialing if present. This field is
    	// mutually exclusive with the "tlsConfig", "Dialer", and "proxier".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top