diff options
Diffstat (limited to 'pingora-proxy/src/proxy_cache.rs')
-rw-r--r-- | pingora-proxy/src/proxy_cache.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pingora-proxy/src/proxy_cache.rs b/pingora-proxy/src/proxy_cache.rs index 8957bc7..c720575 100644 --- a/pingora-proxy/src/proxy_cache.rs +++ b/pingora-proxy/src/proxy_cache.rs @@ -295,7 +295,13 @@ impl<SV> HttpProxy<SV> { } Err(e) => { // TODO: more logging and error handling - session.as_mut().respond_error(500).await; + session + .as_mut() + .respond_error(500) + .await + .unwrap_or_else(|e| { + error!("failed to send error response to downstream: {e}"); + }); // we have not write anything dirty to downstream, it is still reusable return (true, Some(e)); } |