Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 120 for connc (0.06 sec)

  1. pkg/kubelet/cm/dra/plugin/client_test.go

    						ResourceHandle: "dummy-resource",
    					},
    				},
    			}
    			client.NodePrepareResources(context.TODO(), req)
    
    			client.(*plugin).Lock()
    			conn := client.(*plugin).conn
    			client.(*plugin).Unlock()
    
    			m.Lock()
    			defer m.Unlock()
    			reusedConns[conn]++
    		}()
    	}
    
    	wg.Wait()
    	// We should have only one entry otherwise it means another gRPC connection has been created
    	if len(reusedConns) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 16:27:05 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. pkg/xds/server.go

    }
    
    func (conn *Connection) ID() string {
    	return conn.conID
    }
    
    func (conn *Connection) Peer() string {
    	return conn.peerAddr
    }
    
    func (conn *Connection) SetID(id string) {
    	conn.conID = id
    }
    
    func (conn *Connection) ConnectedAt() time.Time {
    	return conn.connectedAt
    }
    
    func (conn *Connection) Stop() {
    	close(conn.stop)
    }
    
    func (conn *Connection) MarkInitialized() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. pilot/pkg/xds/ads.go

    	}
    }
    
    func (conn *Connection) Initialize(node *core.Node) error {
    	return conn.s.initConnection(node, conn, conn.ids)
    }
    
    func (conn *Connection) Close() {
    	conn.s.closeConnection(conn)
    }
    
    func (conn *Connection) Watcher() xds.Watcher {
    	return conn.proxy
    }
    
    func (conn *Connection) Process(req *discovery.DiscoveryRequest) error {
    	return conn.s.processRequest(req, conn)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/nettest/conntest.go

    // The stop function closes all resources, including c1, c2, and the underlying
    // net.Listener (if there is one), and should not be nil.
    type MakePipe func() (c1, c2 net.Conn, stop func(), err error)
    
    // TestConn tests that a net.Conn implementation properly satisfies the interface.
    // The tests should not produce any false positives, but may experience
    // false negatives. Thus, some issues may only be detected when the test is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/database/sql/sql.go

    func (db *DB) Conn(ctx context.Context) (*Conn, error) {
    	var dc *driverConn
    	var err error
    
    	err = db.retry(func(strategy connReuseStrategy) error {
    		dc, err = db.conn(ctx, strategy)
    		return err
    	})
    
    	if err != nil {
    		return nil, err
    	}
    
    	conn := &Conn{
    		db: db,
    		dc: dc,
    	}
    	return conn, nil
    }
    
    type releaseConn func(error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

            try {
                HttpURLConnection conn = (HttpURLConnection)safeUrl.openConnection();
                conn.setRequestMethod("HEAD");
                addBasicAuthentication(uri, conn);
                conn.setRequestProperty("User-Agent", calculateUserAgent());
                conn.setConnectTimeout(networkTimeout);
                conn.connect();
                responseCode = conn.getResponseCode();
                if (responseCode != 200) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. internal/event/target/amqp.go

    		// close when we know this is a network error.
    		target.conn.Close()
    	}
    
    	conn, err = amqp091.Dial(target.args.URL.String())
    	if err != nil {
    		if xnet.IsConnRefusedErr(err) {
    			return nil, nil, store.ErrNotConnected
    		}
    		return nil, nil, err
    	}
    
    	ch, err = conn.Channel()
    	if err != nil {
    		return nil, nil, err
    	}
    
    	target.conn = conn
    
    	if target.args.PublisherConfirms {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. internal/grid/connection.go

    }
    
    // monitorState will monitor the state of the connection and close the net.Conn if it changes.
    func (c *Connection) monitorState(conn net.Conn, cancel context.CancelCauseFunc) {
    	c.connChange.L.Lock()
    	defer c.connChange.L.Unlock()
    	for {
    		newState := c.State()
    		if newState != StateConnected {
    			conn.Close()
    			cancel(ErrDisconnected)
    			return
    		}
    		// Unlock and wait for state change.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. src/crypto/tls/tls_test.go

    		clientConfig := testConfig.Clone()
    		conn, err := Dial("tcp", ln.Addr().String(), clientConfig)
    		if err != nil {
    			return err
    		}
    		if err := conn.Handshake(); err != nil {
    			return err
    		}
    		defer conn.Close()
    
    		if err := conn.CloseWrite(); err != nil {
    			return fmt.Errorf("client CloseWrite: %v", err)
    		}
    
    		if _, err := conn.Write([]byte{0}); err != errShutdown {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  10. internal/http/dial_linux.go

    // NewInternodeDialContext setups a custom dialer for internode communication
    func NewInternodeDialContext(dialTimeout time.Duration, opts TCPOptions) DialContext {
    	return func(ctx context.Context, network, addr string) (net.Conn, error) {
    		dialer := &net.Dialer{
    			Timeout: dialTimeout,
    			Control: setTCPParametersFn(opts),
    		}
    		conn, err := dialer.DialContext(ctx, network, addr)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top