Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for closeFn (0.45 sec)

  1. src/net/http/transport.go

    	if err == nil {
    		panic("nil error")
    	}
    	pc.broken = true
    	if pc.closed == nil {
    		pc.closed = err
    		pc.t.decConnsPerHost(pc.cacheKey)
    		// Close HTTP/1 (pc.alt == nil) connection.
    		// HTTP/2 closes its connection itself.
    		if pc.alt == nil {
    			if err != errCallerOwnsConn {
    				pc.conn.Close()
    			}
    			close(pc.closech)
    		}
    	}
    	pc.mutateHeaderFunc = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. 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)
  3. src/net/http/httputil/reverseproxy_test.go

    	}
    	if !closeCheck.closed {
    		t.Errorf("body should have been closed")
    	}
    	if g, e := logBuf.String(), outErr.Error(); !strings.Contains(g, e) {
    		t.Errorf("ErrorLog %q does not contain %q", g, e)
    	}
    }
    
    type checkCloser struct {
    	closed bool
    }
    
    func (cc *checkCloser) Close() error {
    	cc.closed = true
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  4. src/crypto/tls/conn.go

    	}
    
    	return n, nil
    }
    
    // Close closes the connection.
    func (c *Conn) Close() error {
    	// Interlock with Conn.Write above.
    	var x int32
    	for {
    		x = c.activeCall.Load()
    		if x&1 != 0 {
    			return net.ErrClosed
    		}
    		if c.activeCall.CompareAndSwap(x, x|1) {
    			break
    		}
    	}
    	if x != 0 {
    		// io.Writer and io.Closer should not be used concurrently.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * client.connectionPool().evictAll();
     * ```
     *
     * If your client has a cache, call [close()][Cache.close]. Note that it is an error to create calls
     * against a cache that is closed, and doing so will cause the call to crash.
     *
     * ```java
     * client.cache().close();
     * ```
     *
     * OkHttp also uses daemon threads for HTTP/2 connections. These will exit automatically if they
     * remain idle.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

            outputContains("service: closed with value 12")
    
            when:
            run("first", "second")
    
            then:
            output.count("service:") == 4
            outputContains("service: created with value = 10")
            outputContains("service: value is 11")
            outputContains("service: value is 12")
            outputContains("service: closed with value 12")
    
            when:
            run("help")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  7. src/net/http/client_test.go

    	c := &Client{Transport: roundTripperWithoutCloseIdle{}}
    	c.CloseIdleConnections() // verify we don't crash at least
    
    	closed := false
    	var tr RoundTripper = roundTripperWithCloseIdle(func() {
    		closed = true
    	})
    	c = &Client{Transport: tr}
    	c.CloseIdleConnections()
    	if !closed {
    		t.Error("not closed")
    	}
    }
    
    type testRoundTripper func(*Request) (*Response, error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. src/os/os_test.go

    				Exit(1)
    			}
    			if err != nil {
    				fd.Close()
    				t.Fatalf("Chdir %s: %s", d, err)
    			}
    			if err1 != nil {
    				fd.Close()
    				t.Fatalf("Getwd in %s: %s", d, err1)
    			}
    			if !equal(pwd, d) {
    				fd.Close()
    				t.Fatalf("Getwd returned %q want %q", pwd, d)
    			}
    		}
    	}
    	fd.Close()
    }
    
    // Test that Chdir+Getwd is program-wide.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/DefaultServiceRegistry.java

     *
     * <p>Service instances and factories are closed when the registry that created them is closed using {@link #close()}. If a service instance or factory implements {@link java.io.Closeable} or {@link
     * org.gradle.internal.concurrent.Stoppable} then the appropriate {@link Closeable#close()} or {@link Stoppable#stop()} method is called. Instances are closed in reverse dependency order.</p>
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                    new ClosingCallable<TestCloseable>() {
                      @Override
                      public TestCloseable call(DeferredCloser closer) throws Exception {
                        closer.eventuallyClose(closeable1, closingExecutor);
                        closer.eventuallyClose(closeable2, closingExecutor);
                        return closeable3;
                      }
                    },
                    executor)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
Back to top