You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/10/25 11:43:26 UTC

[GitHub] [incubator-brpc] wasphin commented on a diff in pull request #1958: limiting max bytes in stream comsume queue with the same host socket

wasphin commented on code in PR #1958:
URL: https://github.com/apache/incubator-brpc/pull/1958#discussion_r1004380583


##########
src/brpc/stream.cpp:
##########
@@ -72,6 +74,17 @@ int Stream::Create(const StreamOptions &options,
     s->_connected = false;
     s->_options = options;
     s->_closed = false;
+    s->_cur_buf_size = options.max_buf_size;
+    if (options.max_buf_size > 0 && options.min_buf_size > options.max_buf_size)
+    {

Review Comment:
   这里可以统一下风格, 括号挪上去...



-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org