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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
