- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for retryAfter (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker_test.go
{secondsElapsed: 3, droppedRequests: 11, retryAfter: 4}, {secondsElapsed: 4, droppedRequests: 1, retryAfter: 4}, {secondsElapsed: 7, droppedRequests: 1, retryAfter: 8}, {secondsElapsed: 11, droppedRequests: 1, retryAfter: 8}, {secondsElapsed: 15, droppedRequests: 1, retryAfter: 7}, {secondsElapsed: 17, droppedRequests: 1, retryAfter: 6}, {secondsElapsed: 21, droppedRequests: 14, retryAfter: 5},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 13:50:25 UTC 2023 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker.go
s.retryAfterUpdateUnix = unixTime return } if droppedRequests < retryAfter && retryAfter > 1 { // We try to mimc the TCP algorithm and thus are linearly // scaling down the retryAfter here. retryAfter-- s.retryAfter.Store(retryAfter) return } } // droppedRequestsTracker implement DroppedRequestsTracker interface
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 13:50:25 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/util/async/bounded_frequency_runner_test.go
// Retry was cancelled because we already ran timer.advance(4 * time.Second) // rel=4s since run, 5s since RetryAfter waitForNothing("retry cancelled", t, timer, obj) // Rerun happens after maxInterval timer.advance(5 * time.Second) // rel=9s since run, 10s since RetryAfter waitForNothing("premature", t, timer, obj) timer.advance(time.Second) // rel=10s since run waitForRun("maxInterval", t, timer, obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 12.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12.1K bytes - Viewed (0) -
pkg/util/async/bounded_frequency_runner.go
// in it. select { case bfr.run <- struct{}{}: default: } } // RetryAfter ensures that the function will run again after no later than interval. This // can be called from inside a run of the BoundedFrequencyRunner's function, or // asynchronously. func (bfr *BoundedFrequencyRunner) RetryAfter(interval time.Duration) { // This could be called either with or without bfr.mu held, so we can't grab that
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go
apirequest "k8s.io/apiserver/pkg/endpoints/request" fcmetrics "k8s.io/apiserver/pkg/util/flowcontrol/metrics" "k8s.io/klog/v2" ) const ( // Constant for the retry-after interval on rate limiting. retryAfter = "1" // How often inflight usage metric should be updated. Because // the metrics tracks maximal value over period making this // longer will increase the metric value. inflightUsageMetricUpdatePeriod = time.Second
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 11:34:15 UTC 2023 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go
w.Header().Set(flowcontrol.ResponseHeaderMatchedFlowSchemaUID, string(classification.FlowSchemaUID)) } func tooManyRequests(req *http.Request, w http.ResponseWriter, retryAfter string) { // Return a 429 status indicating "Too Many Requests" w.Header().Set("Retry-After", retryAfter) http.Error(w, "Too many requests, please try again later.", http.StatusTooManyRequests) } // getRequestWaitContext returns a new context with a deadline of how
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.3K bytes - Viewed (0) -
internal/http/headers.go
ContentRange = "Content-Range" Connection = "Connection" AcceptRanges = "Accept-Ranges" AmzBucketRegion = "X-Amz-Bucket-Region" ServerInfo = "Server" RetryAfter = "Retry-After" Location = "Location" CacheControl = "Cache-Control" ContentDisposition = "Content-Disposition" Authorization = "Authorization" Action = "Action"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 10.4K bytes - Viewed (0) -
internal/http/server.go
// To indicate disable keep-alive, server is shutting down. w.Header().Set("Connection", "close") // Add 1 minute retry header, incase-client wants to honor it w.Header().Set(RetryAfter, "60") w.WriteHeader(http.StatusServiceUnavailable) w.Write([]byte(http.ErrServerClosed.Error())) return } atomic.AddInt32(&srv.requestCount, 1)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Feb 09 21:25:16 UTC 2024 - 7.7K bytes - Viewed (0) -
cmd/api-router.go
xhttp.ContentRange, xhttp.ContentEncoding, xhttp.ContentLength, xhttp.ContentType, xhttp.ContentDisposition, xhttp.LastModified, xhttp.ContentLanguage, xhttp.CacheControl, xhttp.RetryAfter, xhttp.AmzBucketRegion, xhttp.Expires, "X-Amz*", "x-amz*", "*", } opts := cors.Options{ AllowOriginFunc: func(origin string) bool {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 22.8K bytes - Viewed (0)