Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Smolarek <34063647+Razz4780@users.noreply.github.com>
  • Loading branch information
meowjesty and Razz4780 authored Oct 14, 2024
1 parent 0cbbb7d commit accbb60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mirrord/intproxy/src/proxies/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,9 @@ impl IncomingProxy {
response,
)))

Check warning on line 619 in mirrord/intproxy/src/proxies/incoming.rs

View workflow job for this annotation

GitHub Actions / lint

Diff in /home/runner/work/mirrord/mirrord/mirrord/intproxy/src/proxies/incoming.rs
}
// Retry on `RST_STREAM` error.
Err(InterceptorError::Reset) => {
tracing::warn!("`RST_STREAM` received in the response, retrying!");
// Retry on known errors.
Err(error @ InterceptorError::Reset) | Err(error @ InterceptorError::ConnectionClosedTooSoon(..)) => {
tracing::warn!(%error, ?request, "Failed to read first frames of streaming HTTP response");

let interceptor = self
.interceptors
Expand Down

0 comments on commit accbb60

Please sign in to comment.