diff options
author | Yuchen Wu <[email protected]> | 2024-07-11 09:40:35 -0700 |
---|---|---|
committer | Yuchen Wu <[email protected]> | 2024-07-12 11:24:29 -0700 |
commit | aa06317ec72ce6a522d8d24d84bacff094ea8c6d (patch) | |
tree | 020c8cd1f1390ef2100d35cf2517ccbb1e6f6efd | |
parent | 2ff09e727d3a896bbb5193e0b34345d9bfcc595e (diff) | |
download | pingora-aa06317ec72ce6a522d8d24d84bacff094ea8c6d.tar.gz pingora-aa06317ec72ce6a522d8d24d84bacff094ea8c6d.zip |
Correctly cast H2 error for GOAWAY
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/connectors/http/v2.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1 +1 @@ -05356d8d19882e125b57f2b855ec744bec733d40
\ No newline at end of file +906381d13d3541a2f4c6abb8be4101398abd0203
\ No newline at end of file diff --git a/pingora-core/src/connectors/http/v2.rs b/pingora-core/src/connectors/http/v2.rs index ce9213b..05b3072 100644 --- a/pingora-core/src/connectors/http/v2.rs +++ b/pingora-core/src/connectors/http/v2.rs @@ -143,7 +143,7 @@ impl ConnectionRef { // Remote sends GOAWAY(NO_ERROR): graceful shutdown: this connection no longer // accepts new streams. We can still try to create new connection. if e.root_cause() - .downcast_ref::<Box<h2::Error>>() + .downcast_ref::<h2::Error>() .map(|e| { e.is_go_away() && e.is_remote() && e.reason() == Some(h2::Reason::NO_ERROR) }) |