lintanghui opened a new issue, #2901: URL: https://github.com/apache/brpc/issues/2901
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** redis 协议中 RedisCommandHandler的run方法只传递了命令参数,没有连接上下文信息,导致无法获取连接的session信息,在多租户场景中, 没有ctx session没法区分不同租户的连接鉴权信息。 **Describe the solution you'd like (描述你期望的解决方法)** 在run方法添加参数 RedisConnContext* ctx, 通过ctx可以获取该链接的session信息。 **Describe alternatives you've considered (描述你想到的折衷方案)** **Additional context/screenshots (更多上下文/截图)** ``` // 默认实现兼容旧的run方法 virtual RedisCommandHandlerResult Run(RedisConnContext* ctx, const std::vector<butil::StringPiece>& args, brpc::RedisReply* output, bool flush_batched) { return Run(args, output, flush_batched); } ``` -- 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.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