Skip to content

Commit 81be571

Browse files
committed
Update proxy_h2.rs
1 parent 922df3c commit 81be571

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

pingora-proxy/src/proxy_h2.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -383,19 +383,7 @@ where
383383
// downstream reset/errored while the upstream write was blocked
384384
// (e.g. on upstream flow control), bail out so the downstream
385385
// stream handles are dropped promptly
386-
let wait_for_cache_fill = (!serve_from_cache.is_on() && support_cache_partial_read)
387-
|| serve_from_cache.is_miss();
388-
if !wait_for_cache_fill {
389-
return Err(e);
390-
}
391-
// ignore downstream error so that upstream can continue to write cache
392-
downstream_state.to_errored();
393-
warn!(
394-
"Downstream Error ignored during caching: {}, {}",
395-
e,
396-
self.inner.request_summary(session, ctx)
397-
);
398-
session.downstream_session.on_proxy_failure(e);
386+
return Err(e);
399387
},
400388
Err(e) => {
401389
// mark request done, attempt to drain receive

0 commit comments

Comments
 (0)