Skip to content

Commit

Permalink
move order
Browse files Browse the repository at this point in the history
Signed-off-by: Boteng Yao <boteng@google.com>
  • Loading branch information
botengyao committed Feb 28, 2024
1 parent 53c7b90 commit 81bb12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/common/stream_info/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,14 @@ ProxyStatusUtils::fromStreamInfo(const StreamInfo& stream_info) {
return ProxyStatusError::ConnectionRefused;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::UpstreamConnectionTermination)) {
return ProxyStatusError::ConnectionTerminated;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::DownstreamConnectionTermination)) {
return ProxyStatusError::ConnectionTerminated;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::OverloadManager)) {
return ProxyStatusError::ConnectionLimitReached;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::DropOverLoad)) {
return ProxyStatusError::ConnectionLimitReached;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::FaultInjected)) {
return ProxyStatusError::HttpRequestError;
} else if (stream_info.hasResponseFlag(CoreResponseFlag::DownstreamConnectionTermination)) {
return ProxyStatusError::ConnectionTerminated;
}
} else {
if (stream_info.hasResponseFlag(CoreResponseFlag::LocalReset)) {
Expand Down

0 comments on commit 81bb12b

Please sign in to comment.