- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 366 for connc (0.07 sec)
-
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) -
cni/pkg/nodeagent/ztunnelserver.go
// nolint: unparam func (z *ztunnelServer) handleConn(ctx context.Context, conn *ZtunnelConnection) error { defer conn.Close() context.AfterFunc(ctx, func() { log.Debug("context cancelled - closing conn") conn.Close() }) // before doing anything, add the connection to the list of active connections z.conns.addConn(conn) defer z.conns.deleteConn(conn) // get hello message from ztunnel
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 22:07:03 UTC 2024 - 12.3K bytes - Viewed (0) -
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) -
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) -
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) -
src/net/http/httptest/server.go
oldHook := s.Config.ConnState s.Config.ConnState = func(c net.Conn, cs http.ConnState) { s.mu.Lock() defer s.mu.Unlock() switch cs { case http.StateNew: if _, exists := s.conns[c]; exists { panic("invalid state transition") } if s.conns == nil { s.conns = make(map[net.Conn]http.ConnState) } // Add c to the set of tracked conns and increment it to the // waitgroup. s.wg.Add(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:26:10 UTC 2024 - 10.7K bytes - Viewed (0) -
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) -
src/net/tcpsock_test.go
testHookUninstaller.Do(uninstallTestHooks) const msgLen = 512 conns := b.N numConcurrent := runtime.GOMAXPROCS(-1) * 2 msgs := 1 if persistent { conns = numConcurrent msgs = b.N / conns if msgs == 0 { msgs = 1 } if conns > b.N { conns = b.N } } sendMsg := func(c Conn, buf []byte) bool { n, err := c.Write(buf) if n != len(buf) || err != nil { b.Log(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 17.7K bytes - Viewed (0) -
src/net/http/serve_test.go
h := HandlerFunc(func(w ResponseWriter, r *Request) { conn, _, err := w.(Hijacker).Hijack() if err != nil { panic(err) } conn.Close() }) conn := &rwTestConn{ Writer: io.Discard, closec: make(chan bool, 1), } ln := &oneConnListener{conn: conn} for i := 0; i < b.N; i++ { conn.Reader = bytes.NewReader(req) ln.conn = conn Serve(ln, h) <-conn.closec } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
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)