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 2021/11/04 09:47:44 UTC
[GitHub] [incubator-brpc] zuoerfeng opened a new issue #1596: controller->ErrorCode cannot set over 256?
zuoerfeng opened a new issue #1596:
URL: https://github.com/apache/incubator-brpc/issues/1596
**Describe the bug (描述bug)**
if controller->SetFailed(brpc::ERPCTIMEDOUT, "rpc call timeout");
but controller->ErrorCode() != brpc::ERPCTIMEDOUT?
check it , it maybe overflow? ErrorCode cannot > 256
**To Reproduce (复现方法)**
controller->SetFailed(brpc::ERPCTIMEDOUT, "rpc call timeout");
EXPECT_EQ(240, controller.ErrorCode());
**Expected behavior (期望行为)**
controller->SetFailed(brpc::ERPCTIMEDOUT, "rpc call timeout");
EXPECT_EQ(brpc::ERPCTIMEDOUT, controller.ErrorCode());
**Versions (各种版本)**
OS: centos6.5
Compiler:gcc482
brpc: 0.9.7
protobuf:2.5.0
**Additional context/screenshots (更多上下文/截图)**


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