rcpx v0.5.0
Adds an opt-in cooldown setting for request deadline failures.
This release adds CooldownConfig.CountDeadlineExceeded. When enabled, an attempted context.DeadlineExceeded is recorded as a cooldown failure for that upstream, so repeated deadline failures can cause future requests to skip it while it is cooling down.
The current request still returns immediately and does not fail over after its context deadline is exceeded. context.Canceled does not count, and default behavior is unchanged.
Changes
- Add
CooldownConfig.CountDeadlineExceeded - Count attempted
context.DeadlineExceededoutcomes toward cooldown when enabled - Keep deadline-exceeded requests from failing over within the same request
- Keep
context.Cancelednon-counting - Update README documentation