MalikHou commented on code in PR #2628:
URL: https://github.com/apache/brpc/pull/2628#discussion_r1591748003


##########
src/brpc/server.cpp:
##########
@@ -902,6 +902,17 @@ int Server::StartInternal(const butil::EndPoint& endpoint,
         _tl_options = ThreadLocalOptions();
     }
 
+    auto original_bthread_tag = _options.bthread_tag;

Review Comment:
   这种校验性质的方法是否可以再提前执行?因为在此之前我看到有些堆上内存被申请,我不确定 server 启动失败业务侧的处理逻辑是什么?如果不是 fast 
fail 那么看起来可能存在潜在内存泄漏。
   Can this verification method be executed earlier? Because I saw some heap 
memory being requested before this, I am not sure what the business logic is 
for server startup failure? If it is not a fast fail, then it seems that there 
may be a potential memory leak.



-- 
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-unsubscr...@brpc.apache.org

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


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

Reply via email to