We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ec6a70 commit 4525c70Copy full SHA for 4525c70
1 file changed
client/src/middleware/retry_closed_connection.rs
@@ -44,6 +44,17 @@ where
44
return Err(Error::H1(crate::h1::Error::Io(err)));
45
}
46
47
+ Err(Error::H2(crate::h2::Error::H2(err))) => {
48
+ if !err.is_go_away() {
49
+ return Err(Error::H2(crate::h2::Error::H2(err)));
50
+ }
51
+
52
+ let reason = err.reason().unwrap();
53
54
+ if reason != h2::Reason::NO_ERROR {
55
56
57
58
Err(Error::H2(crate::h2::Error::Io(err))) => {
59
if err.kind() != io::ErrorKind::UnexpectedEof {
60
return Err(Error::H2(crate::h2::Error::Io(err)));
0 commit comments