Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for connc (0.14 sec)

  1. src/net/http/transport_internal_test.go

    func TestTransportPersistConnReadLoopEOF(t *testing.T) {
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	connc := make(chan net.Conn, 1)
    	go func() {
    		defer close(connc)
    		c, err := ln.Accept()
    		if err != nil {
    			t.Error(err)
    			return
    		}
    		connc <- c
    	}()
    
    	tr := new(Transport)
    	req, _ := NewRequest("GET", "http://"+ln.Addr().String(), nil)
    	req = req.WithT(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. internal/kms/conn.go

    	// MAC generates the checksum of the given req.Message using the key
    	// with the req.Name at the KMS.
    	MAC(context.Context, *MACRequest) ([]byte, error)
    }
    
    var ( // compiler checks
    	_ conn = (*kmsConn)(nil)
    	_ conn = (*kesConn)(nil)
    	_ conn = secretKey{}
    )
    
    // Supported KMS types
    const (
    	MinKMS  Type = iota + 1 // MinIO KMS
    	MinKES                  // MinIO MinKES
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. pkg/test/loadbalancersim/loadbalancer/leastrequest.go

    	edfMutex          sync.Mutex
    }
    
    func newWeightedLeastRequest(conn *weightedConnections, activeRequestBias float64) network.Connection {
    	lb := &weightedLeastRequest{
    		weightedConnections: conn,
    		activeRequestBias:   activeRequestBias,
    		edf:                 NewEDF(),
    	}
    
    	// Add all endpoints to the EDF scheduler.
    	for _, c := range conn.conns {
    		lb.edf.Add(lb.calcEDFWeight(0, c), c)
    	}
    
    	return lb
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. pilot/pkg/autoregistration/connections.go

    	m.Lock()
    	defer m.Unlock()
    	var conns []connection
    	for key, connections := range m.byProxy {
    		if key.GroupName == wg.Name && key.Namespace == wg.Namespace {
    			conns = append(conns, maps.Values(connections)...)
    		}
    	}
    	return conns
    }
    
    func (m *adsConnections) Connect(conn connection) {
    	m.Lock()
    	defer m.Unlock()
    	k := makeProxyKey(conn.Proxy())
    
    	connections := m.byProxy[k]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go

    	default:
    		_, err = streams[constants.StreamErr].Write([]byte{})
    	}
    	if err != nil {
    		conn.Close()
    		return nil, fmt.Errorf("write error during websocket server creation: %v", err)
    	}
    
    	ctx := &conns{
    		conn:         conn,
    		stdinStream:  streams[constants.StreamStdIn],
    		stdoutStream: streams[constants.StreamStdOut],
    		stderrStream: streams[constants.StreamStdErr],
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. pkg/test/loadbalancersim/loadbalancer/weight.go

    }
    
    type weightedConnections struct {
    	conns  []*WeightedConnection
    	helper *network2.ConnectionHelper
    }
    
    func newLBConnection(name string, conns []*WeightedConnection) *weightedConnections {
    	return &weightedConnections{
    		conns:  conns,
    		helper: network2.NewConnectionHelper(name),
    	}
    }
    
    func (lb *weightedConnections) AllWeightsEqual() bool {
    	if len(lb.conns) == 0 {
    		return true
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. src/net/http/export_test.go

    	return len(t.idleConn)
    }
    
    func (t *Transport) IdleConnStrsForTesting() []string {
    	var ret []string
    	t.idleMu.Lock()
    	defer t.idleMu.Unlock()
    	for _, conns := range t.idleConn {
    		for _, pc := range conns {
    			ret = append(ret, pc.conn.LocalAddr().String()+"/"+pc.conn.RemoteAddr().String())
    		}
    	}
    	slices.Sort(ret)
    	return ret
    }
    
    func (t *Transport) IdleConnStrsForTesting_h2() []string {
    	var ret []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. pkg/test/loadbalancersim/loadbalancer/roundrobin.go

    	"sync"
    
    	"istio.io/istio/pkg/test/loadbalancersim/network"
    )
    
    func NewRoundRobin(conns []*WeightedConnection) network.Connection {
    	// Add instances for each connection based on the weight.
    	var lbConns []*WeightedConnection
    	for _, conn := range conns {
    		for i := uint32(0); i < conn.Weight; i++ {
    			lbConns = append(lbConns, conn)
    		}
    	}
    
    	// Shuffle the connections.
    	rand.Shuffle(len(lbConns), func(i, j int) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/vcweb/svn.go

    		h.s <- &svnState{
    			listener:  l,
    			listenErr: err,
    			conns:     map[net.Conn]struct{}{},
    			done:      done,
    		}
    		if err != nil {
    			close(done)
    			return
    		}
    
    		h.logger.Printf("serving svn on svn://%v", l.Addr())
    
    		go func() {
    			for {
    				c, err := l.Accept()
    
    				s := <-h.s
    				if err != nil {
    					s.listenErr = err
    					if len(s.conns) == 0 {
    						close(s.done)
    					}
    					h.s <- s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 5K bytes
    - Viewed (0)
  10. interfaces.go

    type Plugin interface {
    	Name() string
    	Initialize(*DB) error
    }
    
    type ParamsFilter interface {
    	ParamsFilter(ctx context.Context, sql string, params ...interface{}) (string, []interface{})
    }
    
    // ConnPool db conns pool interface
    type ConnPool interface {
    	PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
    	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top