Call the HTTP/2 close() so that GOAWAY is issued

This commit is contained in:
Eric Anderson 2020-12-03 10:12:40 -08:00 committed by Eric Anderson
parent f2eb0af550
commit 6fb84bc61c
1 changed files with 1 additions and 2 deletions

View File

@ -767,7 +767,6 @@ class NettyClientHandler extends AbstractNettyHandler {
private void forcefulClose(final ChannelHandlerContext ctx, final ForcefulCloseCommand msg,
ChannelPromise promise) throws Exception {
ctx.close();
connection().forEachActiveStream(new Http2StreamVisitor() {
@Override
public boolean visit(Http2Stream stream) throws Http2Exception {
@ -787,7 +786,7 @@ class NettyClientHandler extends AbstractNettyHandler {
}
}
});
promise.setSuccess();
close(ctx, promise);
}
/**