EarthChen commented on code in PR #10672:
URL: https://github.com/apache/dubbo/pull/10672#discussion_r979560004
##########
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleHttp2Protocol.java:
##########
@@ -125,11 +126,18 @@ public void configServerProtocolHandler(URL url,
ChannelOperator operator) {
DEFAULT_MAX_HEADER_LIST_SIZE)))
.frameLogger(SERVER_LOGGER)
.build();
+ //增加自定义流控
+ codec.connection().local().flowController(new
TriHttp2LocalFlowController(codec.connection()));
+ codec.connection().remote().flowController(new
TriHttp2RemoteFlowController(codec.connection()));
+
codec.connection().local().flowController().frameWriter(codec.encoder().frameWriter());
+
final Http2MultiplexHandler handler = new Http2MultiplexHandler(
new ChannelInitializer<Channel>() {
@Override
protected void initChannel(Channel ch) {
final ChannelPipeline p = ch.pipeline();
+ AttributeKey key = AttributeKey.valueOf("tri-connection");
Review Comment:
connection attr is already exist on channel
--
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]