fix: close connection after receiving GO_AWAY from remote

This commit is contained in:
Mitja Kleider 2025-06-16 15:24:36 +02:00
parent 69dda5c943
commit 95d238ef98
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ where
fut.await.map_err(SendRequestError::from)?
}
Err(err) => {
io.on_release(err.is_io());
io.on_release(err.is_io() || (err.is_go_away() && err.is_remote()));
return Err(err.into());
}
};