52coder commented on issue #1870: URL: https://github.com/apache/incubator-brpc/issues/1870#issuecomment-1229210436
> 可以贴一下完整的代码么,我在server端添加`cntl->SetFailed(brpc::EREQUEST, "Fail to parse request");`之后,在client看到的日志是`W0822 11:08:00.715427 748755 client.cpp:90] [E1003][10.227.87.49:8000][E1003]Failed to parse request`,而你贴的日志是Fail to **send** EchoRequest, 比较奇怪。 代码是拷贝的asynchronous_echo_c++目录,修改代码是和你的https://github.com/TousakaRin/brpc/tree/circuit_breaker_test代码一样,除了没有dummy_server.port这个文件,client端打印client.cpp:42] Fail to send EchoRequest, [E1003][127.0.1.1:8003][E1003]Failed to parse request也是正常的吧,因为server端的回报设置了failed,打印这个应该没问题。 重新检查了一遍,其中一个server 100%失败,跑半小时还是没有触发熔断。 -- 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]
