Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,847 for closeFD (0.19 sec)

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

    const createStreamResponseTimeout = 30 * time.Second
    
    // Close first sends a reset for all of the connection's streams, and then
    // closes the underlying spdystream.Connection.
    func (c *connection) Close() error {
    	c.streamLock.Lock()
    	for _, s := range c.streams {
    		// calling Reset instead of Close ensures that all streams are fully torn down
    		s.Reset()
    	}
    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/kubelet/cm/dra/plugin/client_test.go

    func setupFakeGRPCServer(version string) (string, tearDown, error) {
    	p, err := os.MkdirTemp("", "dra_plugin")
    	if err != nil {
    		return "", nil, err
    	}
    
    	closeCh := make(chan struct{})
    	addr := filepath.Join(p, "server.sock")
    	teardown := func() {
    		close(closeCh)
    		os.RemoveAll(addr)
    	}
    
    	listener, err := net.Listen("unix", addr)
    	if err != nil {
    		teardown()
    		return "", nil, err
    	}
    
    	s := grpc.NewServer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 16:27:05 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered.go

    //   - Timer has passed.
    //   - Buffer channel is closed and empty.
    //   - stopCh is closed.
    func (b *bufferedBackend) collectEvents(timer <-chan time.Time, stopCh <-chan struct{}) []*auditinternal.Event {
    	var events []*auditinternal.Event
    
    L:
    	for i := 0; i < b.maxBatchSize; i++ {
    		select {
    		case ev, ok := <-b.buffer:
    			// Buffer channel was closed and no new events will follow.
    			if !ok {
    				break L
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        //     we find them, regardless of what the address policies need.
        //
        //  2. EVICTABLE: Connections not required by any address policy. This matches connections that
        //     don't participate in any policy, plus connections whose policies won't be violated if the
        //     connection is closed. We only close these if the idle connection limit is exceeded.
        //
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/net/rpc/client_test.go

    	codec := &shutdownCodec{responded: make(chan int)}
    	client := NewClientWithCodec(codec)
    	<-codec.responded
    	client.Close()
    	if !codec.closed {
    		t.Error("client.Close did not close codec")
    	}
    }
    
    // Test that errors in gob shut down the connection. Issue 7689.
    
    type R struct {
    	msg []byte // Not exported, so R does not work with gob.
    }
    
    type S struct{}
    
    func (s *S) Recv(nul *struct{}, reply *R) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  6. test/typeparam/chansimp.dir/a.go

    // This will leave a goroutine running until either both channels are closed
    // or the context is canceled, at which point the returned channel is closed.
    func Merge[Elem any](ctx context.Context, c1, c2 <-chan Elem) <-chan Elem {
    	r := make(chan Elem)
    	go func(ctx context.Context, c1, c2 <-chan Elem, r chan<- Elem) {
    		defer close(r)
    		for c1 != nil || c2 != nil {
    			select {
    			case <-ctx.Done():
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          if (civilizedFileSystem) return fileSource
    
          lockingSourceCount++
          return object : ForwardingSource(fileSource) {
            private var closed = false
    
            override fun close() {
              super.close()
              if (!closed) {
                closed = true
                synchronized(this@DiskLruCache) {
                  lockingSourceCount--
                  if (lockingSourceCount == 0 && zombie) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  8. cmd/import-boss/README.md

    contain rules which are evaluated against each dependency of the package in
    question.
    
    Evaluation starts with the rules file closest to the package.  If that file
    makes a determination to allow or forbid the import, evaluation is done.  If
    the import does not match any rule, the next-closest rules file is consulted,
    and so forth.  If the rules files are exhausted and no determination has been
    made, the import will be flagged as an error.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:36 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		t.Errorf("Until did not return immediately when the stop chan was closed inside the func")
    	}
    }
    
    func TestJitterUntil(t *testing.T) {
    	ch := make(chan struct{})
    	// if a channel is closed JitterUntil never calls function f
    	// and returns immediately
    	close(ch)
    	JitterUntil(func() {
    		t.Fatal("should not have been invoked")
    	}, 0, 1.0, true, ch)
    
    	ch = make(chan struct{})
    	called := make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. test/typeparam/chans.go

    // This will leave a goroutine running until either both channels are closed
    // or the context is canceled, at which point the returned channel is closed.
    func _Merge[Elem any](ctx context.Context, c1, c2 <-chan Elem) <-chan Elem {
    	r := make(chan Elem)
    	go func(ctx context.Context, c1, c2 <-chan Elem, r chan<- Elem) {
    		defer close(r)
    		for c1 != nil || c2 != nil {
    			select {
    			case <-ctx.Done():
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
Back to top