wwbmmm commented on PR #2948:
URL: https://github.com/apache/brpc/pull/2948#issuecomment-2799938172
   > 我觉得tag是一个上下文,在系统启动过程应该初始化好,后续的执行流总是切换tag感觉就不太合理了。 
有这样的场景,从tag1接受网络消息,然后用户将任务丢给tag2处理,然后在tag2里面返回网络应答,这个过程是不会创建新socket的,接受网络消息的socket是tag1,在它的生命周期里面tag不会改变。
 
bthread的创建是用户可调用、可配置的,但是socket的创建是限制在bRPC内部完成的,应该由bRPC保证它的正确性,用户没法直接干预。用户配置好它的上下文,socket的上下文就应该符合用户的预期,否则用户就没办法了。
   
   ok
   
   LGTM


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