Skip to content

Disabling GET requests on upstream retries logic makes upstream selection unreliable #5838

@b4stien

Description

@b4stien

In a reverse proxy scenario I don't want Caddy to retry GET requests when an upstream has accepted the request from caddy. As far as I understood this is doable in Caddy by setting the following config:

"retry_match": [
  {
    "method": []
  }
]

My problem is that, doing so, I get intermittent no upstreams available from Caddy. I've put a full repro on this repository.

As no upstreams available suggest that the error occurred before a connection was established to the upstream, and reading this comment, I don't get why the request is not retried.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions