Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CloseChan (0.16 sec)

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

    	c.streamLock.Lock()
    	c.streams[s.Identifier()] = s
    	c.streamLock.Unlock()
    }
    
    // CloseChan returns a channel that, when closed, indicates that the underlying
    // spdystream.Connection has been closed.
    func (c *connection) CloseChan() <-chan bool {
    	return c.conn.CloseChan()
    }
    
    // newSpdyStream is the internal new stream handler used by spdystream.Connection.Serve.
    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. pkg/test/framework/scope.go

    	closers []io.Closer
    
    	children []*scope
    
    	closeChan chan struct{}
    
    	topLevel bool
    
    	skipDump bool
    
    	// Mutex to lock changes to resources, children, and closers that can be done concurrently
    	mu sync.Mutex
    }
    
    func newScope(id string, p *scope) *scope {
    	s := &scope{
    		id:        id,
    		parent:    p,
    		closeChan: make(chan struct{}, 1),
    	}
    
    	if p != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go

    	CreateStream(headers http.Header) (Stream, error)
    	// Close resets all streams and closes the connection.
    	Close() error
    	// CloseChan returns a channel that is closed when the underlying connection is closed.
    	CloseChan() <-chan bool
    	// SetIdleTimeout sets the amount of time the connection may remain idle before
    	// it is automatically closed.
    	SetIdleTimeout(timeout time.Duration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go

    	replySent := <-replySentChan
    	<-replySent
    
    	buf := make([]byte, 1)
    	_, err = stream.Read(buf)
    	if err != io.EOF {
    		t.Errorf("server: unexpected read error: %v", err)
    		return
    	}
    
    	<-spdyConn.CloseChan()
    	raw := spdyConn.(*connection).conn
    	if err := raw.Wait(15 * time.Second); err != nil {
    		t.Errorf("server: timed out waiting for connection closure: %v", err)
    	}
    
    	serverDone <- struct{}{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 11:58:57 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/runtime/chan.go

    	memmove(dst, src, t.Size_)
    }
    
    func closechan(c *hchan) {
    	if c == nil {
    		panic(plainError("close of nil channel"))
    	}
    
    	lock(&c.lock)
    	if c.closed != 0 {
    		unlock(&c.lock)
    		panic(plainError("close of closed channel"))
    	}
    
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(c.raceaddr(), callerpc, abi.FuncPCABIInternal(closechan))
    		racerelease(c.raceaddr())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. pilot/pkg/model/jwks_resolver.go

    	// jwksExtraRootCABundlePath is the path to any additional CA certificates pilot should accept when resolving JWKS URIs
    	jwksExtraRootCABundlePath = "/cacerts/extra.pem"
    )
    
    var (
    	// Close channel
    	closeChan = make(chan bool)
    
    	networkFetchSuccessCounter = monitoring.NewSum(
    		"pilot_jwks_resolver_network_fetch_success_total",
    		"Total number of successfully network fetch by pilot jwks resolver",
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.mapiternext", 1},
    	{"runtime.mapclear", 1},
    	{"runtime.makechan64", 1},
    	{"runtime.makechan", 1},
    	{"runtime.chanrecv1", 1},
    	{"runtime.chanrecv2", 1},
    	{"runtime.chansend1", 1},
    	{"runtime.closechan", 1},
    	{"runtime.chanlen", 1},
    	{"runtime.chancap", 1},
    	{"runtime.writeBarrier", 0},
    	{"runtime.typedmemmove", 1},
    	{"runtime.typedmemclr", 1},
    	{"runtime.typedslicecopy", 1},
    	{"runtime.selectnbsend", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func makechan(chanType *byte, size int) (hchan chan any)
    func chanrecv1(hchan <-chan any, elem *any)
    func chanrecv2(hchan <-chan any, elem *any) bool
    func chansend1(hchan chan<- any, elem *any)
    func closechan(hchan chan<- any)
    func chanlen(hchan any) int
    func chancap(hchan any) int
    
    var writeBarrier struct {
    	enabled bool
    	pad     [3]byte
    	cgo     bool
    	alignme uint64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/builtin.go

    	{"mapiternext", funcTag, 95},
    	{"mapclear", funcTag, 96},
    	{"makechan64", funcTag, 98},
    	{"makechan", funcTag, 99},
    	{"chanrecv1", funcTag, 101},
    	{"chanrecv2", funcTag, 102},
    	{"chansend1", funcTag, 104},
    	{"closechan", funcTag, 105},
    	{"chanlen", funcTag, 106},
    	{"chancap", funcTag, 106},
    	{"writeBarrier", varTag, 108},
    	{"typedmemmove", funcTag, 109},
    	{"typedmemclr", funcTag, 110},
    	{"typedslicecopy", funcTag, 111},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/builtin.go

    	}
    	panic("unreachable")
    }
    
    // walkClose walks an OCLOSE node.
    func walkClose(n *ir.UnaryExpr, init *ir.Nodes) ir.Node {
    	return mkcall1(chanfn("closechan", 1, n.X.Type()), nil, init, n.X)
    }
    
    // Lower copy(a, b) to a memmove call or a runtime call.
    //
    //	init {
    //	  n := len(a)
    //	  if n > len(b) { n = len(b) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top