Skip to content

rcpx v0.5.0

Choose a tag to compare

@yermakovsa yermakovsa released this 28 Jun 11:58
· 12 commits to main since this release
c66a728

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.DeadlineExceeded outcomes toward cooldown when enabled
  • Keep deadline-exceeded requests from failing over within the same request
  • Keep context.Canceled non-counting
  • Update README documentation