icodening commented on issue #13375:
URL: https://github.com/apache/dubbo/issues/13375#issuecomment-1813907122
看代码后发现问题所在。
````java
handlers.add(new ChannelHandlerPretender(new Http2MultiplexHandler(new
ChannelDuplexHandler())));
handlers.add(new ChannelHandlerPretender(new
TripleGoAwayHandler()));//此handler没有将PingAck传递给TriplePingPongHandler导致连接被关闭
handlers.add(new ChannelHandlerPretender(new
TriplePingPongHandler(UrlUtils.getCloseTimeout(url))));
handlers.add(new ChannelHandlerPretender(new TripleTailHandler()));
````
以下是`TripleGoAwayHandler`的源码,并没有将Ping Ack传递给后续handler处理
````java
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws
Exception {
if (msg instanceof Http2GoAwayFrame) {
final ConnectionHandler connectionHandler = (ConnectionHandler)
ctx.pipeline().get(Constants.CONNECTION_HANDLER_NAME);
if (logger.isInfoEnabled()) {
logger.info("Receive go away frame of " +
ctx.channel().localAddress() + " -> " + ctx.channel().remoteAddress() + " and
will reconnect later.");
}
connectionHandler.onGoAway(ctx.channel());
}
ReferenceCountUtil.release(msg);
}
````
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]