chenbay commented on PR #1928:
URL: https://github.com/apache/incubator-brpc/pull/1928#issuecomment-1283503844

   > > > max_buf_size只能限制单个stream的buffer 
size,我们两个节点间stream数量可能很多,希望能限制这些streams的总buffer大小,控制内存占用,目前考虑的是通过socket来限制(因为socket就是端到端),socket内的多个streams就让他们自己竞争,有一个min_buf_size也保证了stream不会饿死。
   > > 
   > > 
   > > 如果是出于控制内存的角度倒是可以理解这个需求 
如果是这个需求的话,感觉不需要通过协议传递remain_buffer_size,只需要发送端根据接收端返回的consumed_size,统计一个Socket级别的buf
 size即可。
   > 
   > 是可以的,发送端来计算,少些交互更好。
   
   
   
   > > max_buf_size只能限制单个stream的buffer 
size,我们两个节点间stream数量可能很多,希望能限制这些streams的总buffer大小,控制内存占用,目前考虑的是通过socket来限制(因为socket就是端到端),socket内的多个streams就让他们自己竞争,有一个min_buf_size也保证了stream不会饿死。
   > 
   > 如果是出于控制内存的角度倒是可以理解这个需求 
如果是这个需求的话,感觉不需要通过协议传递remain_buffer_size,只需要发送端根据接收端返回的consumed_size,统计一个Socket级别的buf
 size即可。
   
   哦在发送侧必须每个加一遍,


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

Reply via email to