MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SetTransientErrorCooldownSeconds

Function SetTransientErrorCooldownSeconds

sdk/cliproxy/auth/conductor.go:101–103  ·  view source on GitHub ↗

SetTransientErrorCooldownSeconds configures cooldowns for 408/500/502/503/504. 0 keeps the legacy default; negative values disable transient error cooldowns.

(seconds int)

Source from the content-addressed store, hash-verified

99// SetTransientErrorCooldownSeconds configures cooldowns for 408/500/502/503/504.
100// 0 keeps the legacy default; negative values disable transient error cooldowns.
101func SetTransientErrorCooldownSeconds(seconds int) {
102 transientErrorCooldownSeconds.Store(int64(seconds))
103}
104
105func quotaCooldownDisabledForAuth(auth *Auth) bool {
106 return quotaCooldownDisabledForAuthWithConfig(auth, nil)

Calls

no outgoing calls