envoyproxy/envoy

Retry policy that triggers when both status code and response header conditions are satisfied

オープン

#25,542 opened on 2023/02/14

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (5,373 件のフォーク)batch import
area/retryenhancementhelp wanted

Repository metrics

Stars
 (27,997 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Current documentation highlights several ways to set up retries in the retry policy. Still, I can't seem to find an approach based on specific response headers AND specific status codes as a compound condition. retriable-status-codes and retriable-headers can be used together, in which case the retry would happen if either of these is satisfied.

I am looking for a way to retry the request only if a conjunction of response headers and status codes is true. I believe a response header counterpart to retriable_request_headers would work, as the documentation says that the headers there MUST be present for a retry to occur. For response headers though, I found only retriable-headers that trigger a retry whenever a header is matched, regardless of other conditions (in my case status codes). Did I miss something and there is a solution?

コントリビューターガイド