Skip to content

Commit

Permalink
Remove goaway received connections from channelpool
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanSachi committed Jan 17, 2024
1 parent 5ee83dd commit 9a239bb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ public void destroyObject(Object o) throws Exception {
@Override
public boolean validateObject(Object o) {
TargetChannel targetChannel = (TargetChannel) o;
if (targetChannel.getHttp2ClientChannel() != null &&
targetChannel.getHttp2ClientChannel().getConnection().goAwayReceived()) {
return false;
}
if (targetChannel.getChannel() != null) {
boolean answer = targetChannel.getChannel().isActive();
LOG.debug("Validating channel: {} -> {}", targetChannel.getChannel().id(), answer);
Expand Down

0 comments on commit 9a239bb

Please sign in to comment.