Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions awc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Fix a bug where `GO_AWAY` errors did not stop connections from returning to the pool.

## 3.8.0

- Add `hickory-dns` crate feature (off-by-default).
Expand Down
4 changes: 2 additions & 2 deletions awc/src/client/h2proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ where

let res = poll_fn(|cx| io.poll_ready(cx)).await;
if let Err(err) = res {
io.on_release(err.is_io());
io.on_release(err.is_io() || err.is_go_away());
return Err(SendRequestError::from(err));
}

Expand All @@ -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());
return Err(err.into());
}
};
Expand Down
Loading