Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Hit (0.14 sec)

  1. cmd/dynamic-timeouts_test.go

    	for l := 0; l < 100; l++ {
    		for i := 0; i < dynamicTimeoutLogSize; i++ {
    			timeout.LogSuccess(successTimeout)
    		}
    	}
    
    	adjusted := timeout.Timeout()
    	// Check whether eventual timeout has hit the minimum value
    	if initial <= adjusted || adjusted != minimum {
    		t.Errorf("Failure to decrease timeout appropriately")
    	}
    }
    
    func testDynamicTimeoutAdjust(t *testing.T, timeout *dynamicTimeout, f func() float64) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	}
    
    	logKind := madmin.LogKind(strings.ToUpper(r.Form.Get("logType"))).LogMask()
    	if logKind == 0 {
    		logKind = madmin.LogMaskAll
    	}
    
    	// Avoid reusing tcp connection if read timeout is hit
    	// This is needed to make r.Context().Done() work as
    	// expected in case of read timeout
    	w.Header().Set("Connection", "close")
    
    	setEventStreamHeaders(w)
    
    	logCh := make(chan log.Info, 1000)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  3. cmd/dynamic-timeouts.go

    	return dt.retryInterval
    }
    
    // LogSuccess logs the duration of a successful action that
    // did not hit the timeout
    func (dt *dynamicTimeout) LogSuccess(duration time.Duration) {
    	dt.logEntry(duration)
    }
    
    // LogFailure logs an action that hit the timeout
    func (dt *dynamicTimeout) LogFailure() {
    	dt.logEntry(maxDuration)
    }
    
    // logEntry stores a log entry
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. internal/grid/handlers.go

    	peerPrefix      = "peer"
    	peerPrefixS3    = "peerS3"
    	healPrefix      = "heal"
    )
    
    func init() {
    	// Static check if we exceed 255 handler ids.
    	// Extend the type to uint16 when hit.
    	if handlerLast > 255 {
    		panic(fmt.Sprintf("out of handler IDs. %d > %d", handlerLast, 255))
    	}
    }
    
    func (h HandlerID) valid() bool {
    	return h != handlerInvalid && h < handlerLast
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.9K bytes
    - Viewed (0)
Back to top