lifeiyang commented on issue #1346:
URL: https://github.com/apache/incubator-brpc/issues/1346#issuecomment-788605487


   > 找一下grpc server的h2 window_size的配置,然后把这个值调大就可以了。你的场景应该是client向grpc 
server发大包,默认情况下server端这个窗口是很小的(64K),需要手动调大。
   grpc server 端把stream_window_size 调大也没有效果,还是没发多次发送大包(超过50KB), brpc 
client这边的流控看着是connection 级别的 
remote_window_left限制的原因,个人理解,每个http2连接开始时应该先接收到服务端的setting确定接收方的流控窗口大小,settting 
初始化remote_window_left 如下代码所示:
   
![image](https://user-images.githubusercontent.com/3754939/109601722-55b30200-7b5a-11eb-9bf2-befbd9c316c9.png)
   图中所标注的代码行,为什么不直接写成如下:
   _remote_window_left.store(H2Settings::DEFAULT_INITIAL_WINDOW_SIZE, 
butil::memory_order_relaxed);
   @zyearn 麻烦大佬解惑,谢谢
   
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to