Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for numWrites (0.37 sec)

  1. src/crypto/tls/handshake_client_test.go

    	// before all subsequent writes fail.
    	breakAfter int
    
    	// numWrites is the number of writes that have been done.
    	numWrites int
    }
    
    // brokenConnErr is the error that brokenConn returns once exhausted.
    var brokenConnErr = errors.New("too many writes to brokenConn")
    
    func (b *brokenConn) Write(data []byte) (int, error) {
    	if b.numWrites >= b.breakAfter {
    		return 0, brokenConnErr
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    			}
    			tagMismatch := !isReplicated(tagCount, numSites, tagSet)
    			olockCfgMismatch := !isReplicated(olockCfgCount, numSites, olockConfigSet)
    			sseCfgMismatch := !isReplicated(sseCfgCount, numSites, sseCfgSet)
    			versionCfgMismatch := !isReplicated(versionCfgCount, numSites, versionCfgSet)
    			policyMismatch := !isBktPolicyReplicated(numSites, policies)
    			replCfgMismatch := !isBktReplCfgReplicated(numSites, replCfgs)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	numReaders := 100
    	numRequestsPerReader := 1000
    
    	numWriters := 10
    	numWritesPerWriter := 1000
    
    	waitGroup := sync.WaitGroup{}
    
    	// Spawn a bunch of writers that randomly add groups, remove groups, and
    	// reset the list of groups
    	for i := 0; i < numWriters; i++ {
    		source := rand.NewSource(int64(i))
    
    		waitGroup.Add(1)
    		go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    		close(c)
    	}()
    	<-c
    }
    
    func blockSelectRecvAsync(t *testing.T) {
    	const numTries = 3
    	c := make(chan bool, 1)
    	c2 := make(chan bool, 1)
    	go func() {
    		for i := 0; i < numTries; i++ {
    			awaitBlockedGoroutine(t, "select", "blockSelectRecvAsync", 1)
    			c <- true
    		}
    	}()
    	for i := 0; i < numTries; i++ {
    		select {
    		case <-c:
    		case <-c2:
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top