Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 865 for closeFD (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java

        }
    
        @Override
        public void close() {
            if (closed) {
                // Already closed.
                return;
            }
            closed = true;
            for (Loader value : loaders.values()) {
                IoActions.closeQuietly(value);
            }
        }
    
        private void ensureOpened() {
            if (closed) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

            thrown(IllegalStateException)
        }
    
        def "can close a lock multiple times"() {
            given:
            def lock = createLock(Exclusive)
            lock.close()
    
            expect:
            lock.close()
        }
    
        def "cannot read from file after lock has been closed"() {
            given:
            def lock = createLock(Exclusive)
            lock.close()
    
            when:
            lock.readFile({} as Supplier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/internal/poll/fd_unix.go

    }
    
    // Close closes the FD. The underlying file descriptor is closed by the
    // destroy method when there are no remaining references.
    func (fd *FD) Close() error {
    	if !fd.fdmu.increfAndClose() {
    		return errClosing(fd.isFile)
    	}
    
    	// Unblock any I/O.  Once it all unblocks and returns,
    	// so that it cannot be referring to fd.sysfd anymore,
    	// the final decref will close fd.sysfd. This should happen
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. cmd/bitrot-streaming.go

    }
    
    func (b *streamingBitrotReader) Close() error {
    	if b.rc == nil {
    		return nil
    	}
    	if closer, ok := b.rc.(io.Closer); ok {
    		// drain the body for connection reuse at network layer.
    		xhttp.DrainBody(struct {
    			io.Reader
    			io.Closer
    		}{
    			Reader: b.rc,
    			Closer: closeWrapper(func() error { return nil }),
    		})
    		return closer.Close()
    	}
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. internal/event/target/postgresql.go

    	}
    
    	// Delete the event from store.
    	return target.store.Del(key.Name)
    }
    
    // Close - closes underneath connections to PostgreSQL database.
    func (target *PostgreSQLTarget) Close() error {
    	close(target.quitCh)
    	if target.updateStmt != nil {
    		// FIXME: log returned error. ignore time being.
    		_ = target.updateStmt.Close()
    	}
    
    	if target.deleteStmt != nil {
    		// FIXME: log returned error. ignore time being.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

            registry.getAll(String)
            registry.close()
    
            when:
            registry.get(String)
    
            then:
            IllegalStateException e = thrown()
            e.message == "TestRegistry has been closed."
    
            when:
            registry.getAll(String)
    
            then:
            e = thrown()
            e.message == "TestRegistry has been closed."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  10. internal/rest/client.go

    	return
    }
    
    // ErrClientClosed returned when *Client is closed.
    var ErrClientClosed = errors.New("rest client is closed")
    
    // Call - make a REST call with context.
    func (c *Client) Call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (reply io.ReadCloser, err error) {
    	switch atomic.LoadInt32(&c.connected) {
    	case closed:
    		// client closed, this is usually a manual process
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top