Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Edwards (0.15 sec)

  1. cmd/dynamic-timeouts.go

    			timeout = dt.minimum
    		}
    		atomic.StoreInt64(&dt.timeout, timeout)
    	} else if failPct < dynamicTimeoutDecreaseThresholdPct {
    		// We are hitting the timeout relatively few times,
    		// so decrease the timeout towards 25 % of maximum time spent.
    		max = max * 125 / 100
    
    		timeout := atomic.LoadInt64(&dt.timeout)
    		if max < time.Duration(timeout) {
    			// Move 50% toward the max.
    			timeout = (int64(max) + timeout) / 2
    		}
    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)
Back to top